Xcode 编译遇到错误:duplicate symbol _base64Decode

编译时候出现错误:

duplicate symbol _base64Decode in:
    /Users/mac/GitHub/Works/xxx/xxx/Pods/UMengUShare/UShareSDK/SocialLibraries/WeChat/WechatSDK/libWeChatSDK.a(base64.o)
    /Users/mac/Library/Developer/Xcode/DerivedData/xxx-dzntfhgmbaenstclojvuiyuuxxmt/Build/Products/Debug-iphoneos/libcocos2d iOS.a(base64.o)
ld: 1 duplicate symbol for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error1.png

原因:
两个库文件的都定义了base64Decode,Xcode就认为是重复定义了,因此报错
解决办法:
删掉 TARGETS->Build Settings->other linker flag-> -all_load!

你可能感兴趣的:(Xcode 编译遇到错误:duplicate symbol _base64Decode)