Adding framework to existing Cocoapods setup

我只是一个虾纸丫 提交于 2019-12-10 23:06:32

问题


I am working with a project where Cocoapods is used. I am unable to find any documentation for adding a framework to an already existing Cocoapods setup. All I can find are example on how to setup Cocoapods from scratch.

Any help? I'd like to add ABContactHelper via Cocoapods.

Thanks!


回答1:


Just add the pod to your Podfile and run pod install again.

For ABContactHelper, do:

  1. edit Podfile
  2. add pod 'ABContactHelper' to the Podfile
  3. pod install



回答2:


and don't forget to close the workspace in xCode before doing 'pod install', because if you don't, you can loose all your not saved changes, as xCode will ask you to revert the workspace to the version saved on disk. Yes, I did it once ;)



来源:https://stackoverflow.com/questions/11401483/adding-framework-to-existing-cocoapods-setup

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