简体   繁体   中英

iOS - How to manage dependencies of a framework during it's development using cocoapods?

I am currently developing an iOS framework (let's say MyFramework ) which internally uses 3rd party framework, let's say Alamofire for some of it's functionalities. How can I install this dependency using cocoapods and use it during the development of the framework. Any pointers would be appreciated. Thanks in advance!!

Assuming that MyFramework is also going to be distributed via Cocoapods: create a hosting app for your framework, and include it as a so-called development pod:

 pod 'MyFramework', :path => '.../path/to/MyFramework'

In MyFramework.podspec , mention Alamofire as a dependency:

 s.dependency 'Alamofire'

Run pod install .

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