【发布时间】:2020-12-25 19:12:46
【问题描述】:
在任何 arm64、arm7 上存档的 ios 应用程序安装在真实设备上时在启动后崩溃。在模拟器中调试和发布工作正常。看起来捆绑包没有加载。
复制步骤
npx react-native init testprod --template react-native-template-typescript
open testprod.xcworkspace
build and run
archive
export the ipa
run it reald revice (or use browserstack)
https://drive.google.com/file/d/1le9LaEAD8nODxK0XN0st5UIzqq_dJ3i-/view?usp=sharing
这是打包的应用程序。
到达那里的步骤;
npx react-native init testprod --template react-native-template-typescript 打开 testprod.xcworkspace 档案 导出ipa 运行它 reald revice(或使用 browserstack) 发布链上的链接存在一个错误。通过以下方式修复Xcode 12, building for iOS Simulator, but linking in object file built for iOS, for architecture arm64
应用程序因此崩溃
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x000000000000000e x1: 0x0000000000000003 x2: 0x0000000000000028 x3: 0x0000000000000030
x4: 0x0000000000000603 x5: 0x0000000000000000 x6: 0x0000000000000000 x7: 0x0000000000000403
x8: 0x0000000000000000 x9: 0x0000000000000000 x10: 0xffffffffffffffff x11: 0x0000000000000000
x12: 0x000000028135f138 x13: 0x000000000000ffef x14: 0x0080000000000000 x15: 0x0000004000000001
x16: 0xffffffffffffffdc x17: 0x0000000000000001 x18: 0x0000000000000000 x19: 0x0000000281e53420
x20: 0x0000000281e533e0 x21: 0xffffffffffffffff x22: 0x0000000000000001 x23: 0x00000001d4693a71
x24: 0x0000000000000000 x25: 0x00000001d4256b0b x26: 0x000000002b870064 x27: 0x0000000000000010
x28: 0x0000000000000000 fp: 0x000000016cf24e10 lr: 0x000000018d02318c
sp: 0x000000016cf24e00 pc: 0x00000001b7dc6680 cpsr: 0x60000000
esr: 0x56000080 Address size fault
【问题讨论】:
-
能否请您先尝试在您的真实设备上运行
release模式并将错误放在这里?您可以转到 Product>Scheme>EditScheme 将Run Build Configuration更改为Release
标签: ios xcode react-native