Xcode Version 12.2 (12B45b)
pod WechatOpenSDK 项目无法在模拟器上运行报错如下
in /Users/xxxx/Desktop/XXXXX-iOS-New/Pods/WechatOpenSDK/OpenSDK1.8.7.1/libWeChatSDK.a(WechatAuthSDK.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/xxxx/Desktop/XXXXX-iOS-New/Pods/WechatOpenSDK/OpenSDK1.8.7.1/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中,加如下信息,然后clean项目,
再pod install下; 重新运行项目就能在模拟器运行了