如何在我的工作区中为所有项目提供使用CocoaPods安装的pod?

时间:2022-09-25 07:45:27

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.

我正在使用XCode 4.6.1。我的工作区中有几个项目,但只有一个能够包含添加了CocoaPods的库。其他项目根本没有检测到它们。

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?

如何与整个工作区共享我的CocoaPods?我是否需要在所有项目的构建依赖项中包含libPods.a?我是否需要在podfile中添加一些特殊内容?

1 个解决方案

#1


8  

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

默认情况下,CocoaPods仅链接到它找到的第一个目标。您可能希望查看xcodeproj和link_with Podfile指令。

#1


8  

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

默认情况下,CocoaPods仅链接到它找到的第一个目标。您可能希望查看xcodeproj和link_with Podfile指令。