iOS-工程多target下的Podfile配置
生活随笔
收集整理的這篇文章主要介紹了
iOS-工程多target下的Podfile配置
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
兩種方式:
1,
# 使用關(guān)鍵字abstract_target,使用多個(gè)target共享同一個(gè)pod,這里是common_pod abstract_target 'common_pod' dopod 'AFNetworking'# targetA 單獨(dú)擁有target 'targetA' dopod 'Masonry'end# targetB 單獨(dú)擁有 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感謝這篇文章的作者
總結(jié)
以上是生活随笔為你收集整理的iOS-工程多target下的Podfile配置的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: dism /online /get-pa
- 下一篇: QT5.14.2+VS2019安装配置教