ldd: in ../Pods/WechatOpenSDK/OpenSDK1.8.7/libWeChatSDK.a(WechatAuthSDK.o), building for iOS Simulator, but linking in object file built for iOS, file '../Pods/WechatOpenSDK/OpenSDK1.8.7/libWeChatSDK.a' for architecture arm64
看描述是1.8.7的arm64 sdk没有包含模拟器。 请问如何处理
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下; 重新运行项目就能在模拟器运行了
我也遇到同样的问题,可以这么来解决:
Build Settings -> Excluded Architecture -> Any iOS Simulator SDK -> arm64
相同现象同问