收藏
回答

iOS Xcode WechatOpenSDK 模拟器无法运行

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

回答关注问题邀请回答
收藏

1 个回答

  • 活在当下
    活在当下
    2021-10-19
    1. podFile加下面代码

    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下; 重新运行项目就能在模拟器运行了

    2021-10-19
    有用
    回复
登录 后发表内容
问题标签