- M1芯片的电脑升级到xcode14后运行模拟器报如下错误
xxx/Pods/UMCShare/UMShare/SocialLibraries/WeChat/WechatSDK/libSocialOfficialWeChat.a(UMSocialOfficialWechatHandler.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/xx/Desktop/xxx/demoProject/Pods/UMCShare/UMShare/SocialLibraries/WeChat/WechatSDK/libSocialOfficialWeChat.a' for architecture arm64
- 解决方法:
1.在podfile文件中添加如下代码:
post_install do |installer|
installer.pods_project.build_configurations.each do |config| config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
end