ld: in /Users/renhuaqian/Documents/mutableTarges/mb-ios/MosoBooksPhone/ClassLibrary/UMShareSDK/WeChat/libWeChatSDK.a(WechatAuthSDK.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/renhuaqian/Documents/mutableTarges/mb-ios/MosoBooksPhone/ClassLibrary/UMShareSDK/WeChat/libWeChatSDK.a' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
post_install do |installer|
installer.pods_project.build_configurations.each do |config| config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
end
2.buildSetting中,加如下信息,然后clean项目,
再pod install下; 重新运行项目就能在模拟器运行了
你好,看报错是集成的友盟的SDK, 麻烦找友盟看看。
***/***/WxSDK_1.9.2/libWeChatSDK.a; for architecture arm64
post_install do |installer|
installer.pods_project.build_configurations.each do |config| config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
end
2.buildSetting中,加如下信息,
Excluded Architectures 下面加上 Any iOS simulator SDK ,值为arm64
然后clean项目,
再pod install下; 重新运行项目就能在模拟器运行了
参考此篇回复https://developers.weixin.qq.com/community/develop/doc/000c6275b68bf014265b30dc256800?_at=1634607968131