【问题标题】:Can't get react-native to build in IOS when targeting real device以真实设备为目标时,无法在 IOS 中构建 react-native
【发布时间】:2019-06-21 01:55:49
【问题描述】:

我有一个 react-native 应用程序,当我从 react-native run-ios 运行它以及从 Xcode 运行它时,它正在成功构建,只要我的目标是模拟器。

但是,当我将目标设备更改为连接的 Iphone 时,Xcode 失败并出现一般错误

“clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)”

以 emulator 为目标时构建良好,但如果我以真实设备为目标则失败?

关于什么可能是错误的或寻找调试的一般方向的任何想法?

【问题讨论】:

    标签: ios react-native xcode10.2


    【解决方案1】:

    错误是does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64

    如果您不使用位码,请不要使用它们。

    Build Settings -> Build Options 'Enable Bitcode' 存在。

    请将其更改为否。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-11-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-04-19
      • 2020-07-18
      • 2019-02-20
      • 2020-12-20
      相关资源
      最近更新 更多