2

我已经为这个问题苦苦挣扎好几天了 :( 在模拟器中构建我的 iOS 应用程序时,它工作正常(调试构建),但是一旦我尝试构建到我的 iPhone 11(v 14.5.1)我构建失败并出现以下错误:

ld: warning: Could not find or use auto-linked framework 'GoogleDataTransport'
ld: warning: Could not find or use auto-linked framework 'FirebaseRemoteConfig'
ld: warning: Could not find or use auto-linked framework 'FirebaseCore'
ld: warning: Could not find or use auto-linked framework 'Protobuf'
ld: warning: Could not find or use auto-linked framework 'FirebaseInstallations'
ld: warning: Could not find or use auto-linked framework 'GoogleToolboxForMac'
Undefined symbols for architecture arm64:

我正在使用 Xcode 12.5。我尝试了各种建议,例如:

  • 加上价值LD_VERIFY_BITCODE_ User-Defined_Build SettingsNO
  • Enable BitcodeBuild Settings与价值NO
  • 删除派生数据
  • 卸载和安装 Pod
  • 干净的构建
  • 确保Framework Search Paths看起来正确。我只有 $(inherited)
  • 更改$(inherited)recursive
  • 确保我打开了 .xcworkspace 文件而不是 .xcodeproj

还有其他可能的解决方案吗?

4

2 回答 2

0

You should try setting ENABLE_BITCODE = NO for all of your targets (including your app targets & multiple PODS targets).

Here's what you can add at the end of Podfile.

post_install do |installer|
  installer.project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings["ENABLE_BITCODE"] = "NO"
    end
  end
end

Save it and do a pod install. Do a clean build, see if it helps.

于 2021-06-15T14:11:29.610 回答
0

这个问题与我是否在它的工作原理中Flipper注释掉有关。不幸的是,我还没有找到仅在本地设备上运行时禁用翻转器的好方法。use_flipper!()Podfile

于 2021-06-17T11:01:27.083 回答