Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I make pods installed with CocoaPods available to ALL projects in my workspace?

I'm using XCode 4.6.1. I have several projects in my workspace, but only one of them is able to include libraries added with CocoaPods. The other projects don't detect them at all.

How do I share my CocoaPods with the entire workspace? Do I need to include libPods.a in the build dependencies of all projects? Do I need to add something special to the podfile?

like image 395
zakdances Avatar asked Apr 25 '13 03:04

zakdances


People also ask

How do you install pods CocoaPods?

To install the pods, do one of the following: Place the caret at the code line where you add the pod, press ⌥ ⏎ , select Install, and press ⏎ . Click Install pods in the top-left corner of the editor window. From the main menu, select Tools | CocoaPods | Install.

How do I add pods dependencies?

You can add dependencies on subspecs. Specify the minimum deployment target version for the Pod library. Re-import the project.


1 Answers

By default CocoaPods only links with the first target it finds. You probably want to look at the xcodeproj and link_with Podfile directives.

like image 181
alloy Avatar answered Sep 21 '22 21:09

alloy