CocoaPods版本升级

最近在研究项目组件化,用到子项目打包成动态库时要依赖第三方静态库,而主项目也依赖第三方库,比如CTMediator,Masonry等

运行时会报错

objc[58067]: Class CTMediator is implemented in both /Users/pc/Library/Developer/Xcode/DerivedData/EducationPlatform-bhcheptxbpeumlcidxlgenbqgbsk/Build/Products/Debug-iphonesimulator/WPHomeModule.framework/WPHomeModule (0x107f485b0) and /Users/pc/Library/Developer/CoreSimulator/Devices/08988D83-C258-4760-A2E0-50D921C46923/data/Containers/Bundle/Application/897E4AB0-FC0C-435B-893A-313EB1CA5343/EducationPlatform.app/EducationPlatform (0x1019f40e8). One of the two will be used. Which one is undefined.
objc[58067]: Class MASCompositeConstraint is implemented in both /Users/pc/Library/Developer/Xcode/DerivedData/EducationPlatform-bhcheptxbpeumlcidxlgenbqgbsk/Build/Products/Debug-iphonesimulator/WPHomeModule.framework/WPHomeModule (0x107f48600) and /Users/pc/Library/Developer/CoreSimulator/Devices/08988D83-C258-4760-A2E0-50D921C46923/data/Containers/Bundle/Application/897E4AB0-FC0C-435B-893A-313EB1CA5343/EducationPlatform.app/EducationPlatform (0x1019f5588). One of the two will be used. Which one is undefined.

原因是两边同时引用了这两个库,但因为POD设置生成的是静态库,所以两边编译的时候都把库链接进去了,而APP的命名空间又一样。造成冲突,需要将这些库封装为动态库,但发现cocoapods版本低了,需要升级。所以找到下面的链接。

https://blog.csdn.net/yaoliangjun306/article/details/77824136

转载于:https://www.cnblogs.com/-WML-/p/9018713.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值