如何将cocoapods添加到现有工作区而不是项目
我正在开发一个项目,该项目由工作区中的其他三个项目组成。我想使用CocoaPods来管理我在工作区中的依赖,但CocoaPods总是创建自己的工作区,只有一个addtional项目。我想要做的是将CocoaPods项目添加到已经存在的工作区。有没有简单的方法来实现?
I am working on a project which is composed of three other projects in a workspace. I want to use CocoaPods to manage my dependecies in the workspace, but CocoaPods always creates its own workspace with only one addtional project. What I want to do is to add CocoaPods project to the workspace that already exists. Is there any simple way to achive that?
您可以在podfile中指定工作区。
You can specify a workspace in your podfile.
workspace 'MyWorkspace'
有关详细信息,请参阅此链接:
http: //guides.cocoapods.org/syntax/podfile.html#workspace
Please consult this link for more info: http://guides.cocoapods.org/syntax/podfile.html#workspace