【问题标题】:React Native Symbol(s) not found for architecture amrv7未找到架构 armv7 的 React Native Symbol(s)
【发布时间】:2019-05-13 10:59:15
【问题描述】:

构建在 Android 和 IOS 的调试中运行良好。 Android 版本也可以正常工作。但是通过 XCode 运行 IOS 版本会导致错误,您可以在日志中看到如下所示。

按照这些步骤构建失败

在全新克隆的应用上

npm install // No errors
cd ios/pod update/install // No errors
cd ../react-native run-ios // No errors runs in simulator without any problems

Bundle upp app
react-native bundle --entry-file index.js --platform ios --dev false --bundle-output ios/main.jsbundle --assets-dest ios

Run vihor.xworkspace -  open XCode
In AppDelegate.m Replace line 
jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
with
jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];

Navigate  to product/scheme/edit scheme
set Build Configuration to Release

Run Product/Clean = Success 
Run Product/Build (selected device Generic iOS Device) = Fail

(see image below) 
Generic iOS Device = Symbol(s) not found for architecture amv7
Error Linker command failed with exit code 1 

Package.json

Podfile

环境 Xcode 版本 9.2 (9C40b) 反应原生 cli 2.0.1 反应原生 0.57.1​​

【问题讨论】:

    标签: ios xcode react-native


    【解决方案1】:

    问题是使用的包,react-native-ffmpeg,我使用了完整的 gpl 版本。但此版本不支持 32 位设备。对完整 gpl-lts 的简单更新就可以了

    【讨论】:

      猜你喜欢
      • 2016-04-29
      • 1970-01-01
      • 1970-01-01
      • 2021-06-28
      • 1970-01-01
      • 2015-03-22
      • 1970-01-01
      • 1970-01-01
      • 2020-04-21
      相关资源
      最近更新 更多