项目时完整的,继承了很多sdk,今天加入友盟统计的时候,报了一下错误
ld: 34 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
大概就是集成友盟后,项目出现了重复的第三方依赖文件 UTDID.framework
/Users/Azzan/Desktop/SJKY/SJKYStore/Pods/UMCSecurityPlugins/thirdparties/UTDID.framework/UTDID(UTDIDPersistentFile.o)
/Users/Azzan/Desktop/SJKY/SJKYStore/SJKY/ThirdPart/AliPay/AlipaySDK.framework/AlipaySDK
解决办法:去阿里下载不含有UTDID.framework的库文件,替换原有的就可以了,下载链接
http://p.tb.cn/rmsportal_6680_AlipaySDK_No_UTDID.zip
参考文章:https://www.jianshu.com/p/9ff7713f762d