How to add cocoapods to existing workspace not project

心已入冬 提交于 2019-11-30 06:25:44

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

Illya Krit

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!