简体   繁体   中英

Adding framework to existing Cocoapods setup

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!

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

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 ;)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM