美文网首页
报错building for iOS Simulator, bu

报错building for iOS Simulator, bu

作者: 迷路的小小 | 来源:发表于2023-07-20 22:22 被阅读0次

    In *.a, building for iOS Simulator, but linking in object file built for iOS, file '*.a' for architecture arm64
    解决方案:

    • 在项目得编译设置中,对模拟器排除arm64。
    • 在podfile中添加排除钩子
    post_install do |installer|
      installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
          config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = "arm64"
      end
    end
    

    相关文章

      网友评论

          本文标题:报错building for iOS Simulator, bu

          本文链接:https://www.haomeiwen.com/subject/qkwzudtx.html