由于公司分享庫用到了 libWeiboSDK.a與 libWeChatSDK與
TencentOpenAPI.framework 以及依賴了 DouyinOpenSDK
在pod install時出現(xiàn)了如下錯誤
[!] The 'Pods-***_Example' target has transitive dependencies that include statically linked binaries:
(/***/***/Example/Pods/DouyinOpenSDK/DouyinOpenSDK/libDouyinOpenSDK.a)
看了下原因
在podfile中使用 use_frameworks! 造成的 但是主項目中使用了 swift 必須要設(shè)置 use_frameworks!
因此在GMShare.podspec
s.static_framework = true
參考鏈接
Cocoapods target has transitive dependencies that include static frameworks
組件化-動態(tài)庫實戰(zhàn)