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?
In terminal go to directory with your xcworkspace-file.
$ touch Podfile
then in Podfile :
workspace 'YourWorkspace'
target 'YourProjectName' do
platform :ios, '8.0'
pod 'your pod'
project 'Path to your Project in your workspace'
end
$ pod install
You can specify a workspace in your podfile.
workspace 'MyWorkspace'
Please consult this link for more info: http://guides.cocoapods.org/syntax/podfile.html#workspace
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With