iOS-工程多target下的Podfile配置
生活随笔
收集整理的這篇文章主要介紹了
iOS-工程多target下的Podfile配置
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
兩種方式:
1,
# 使用關鍵字abstract_target,使用多個target共享同一個pod,這里是common_pod abstract_target 'common_pod' dopod 'AFNetworking'# targetA 單獨擁有target 'targetA' dopod 'Masonry'end# targetB 單獨擁有 target 'targetB' dopod 'SDWebImage'end end2,
# 共同的pod def commonPodspod 'Masonry', '~> 1.1.0' end# targetA target 'targetA' docommonPodspod 'AFNetworking', '~> 3.2.1' end# targetB target 'targetB' docommonPodspod 'YYModel' end感謝這篇文章的作者
總結
以上是生活随笔為你收集整理的iOS-工程多target下的Podfile配置的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: dism /online /get-pa
- 下一篇: QT5.14.2+VS2019安装配置教