简体   繁体   English

ios 应用程序在 ios 14 上启动后崩溃,基于 xcode 12.2

[英]ios app crashing after launch on ios 14 built on xcode 12.2

ios app archived on any arm64, arm7 when installed on a real device crashing after launch. ios 应用程序存档在任何 arm64、arm7 上,当安装在真实设备上时,启动后崩溃。 Working fine on Debug and release in simulators.在模拟器中调试和发布工作正常。 looks like the bundle is not loading.看起来捆绑包没有加载。

Steps To Reproduce重现步骤

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 https://drive.google.com/file/d/1le9LaEAD8nODxK0XN0st5UIzqq_dJ3i-/view?usp=sharing

this is the packaged app.这是打包的应用程序。

steps to get there;到达那里的步骤;

npx react-native init testprod --template react-native-template-typescript open testprod.xcworkspace archive export the ipa run it reald revice (or use browserstack) there was one bug for linking on the release chain. npx react-native init testprod --template react-native-template-typescript open testprod.xcworkspace archive export the ipa run it reald revice(或使用 browserstack) 发布链上有一个链接错误。 fixed by following here Xcode 12, building for iOS Simulator, but linking in object file built for iOS, for architecture arm64通过以下方式修复Xcode 12,为 iOS 模拟器构建,但在 object 文件中为 Z1BDF60D5A7D3A38 构建,为架构 506402CDB111

app crashes with this应用程序因此崩溃

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

link to the issue https://github.com/facebook/react-native/issues/30500链接到问题https://github.com/facebook/react-native/issues/30500

When running on a real device most probably setting a valid development team , development/production certificates and provisioning profile should fix these types of problems .当在真实设备上运行时,很可能设置了一个valid development teamdevelopment/production certificatesprovisioning profile应该可以解决这些类型的问题

You can create a valid development team in your Apple Project Account and set it in Xcode->YourProjectTarget->Signing Capabilities .您可以在您的 Apple Project Account 中创建一个有效的开发团队,并在Xcode->YourProjectTarget->Signing Capabilities中进行设置。

NOTE: To debug why app crashes on a real device and not on simulator I would try to create an archive and validate it.注意:为了调试应用程序在真实设备上而不是在模拟器上崩溃的原因,我会尝试创建一个存档并验证它。 You should get more info about the problem at the archive or validation process.您应该在存档或验证过程中获得有关该问题的更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 更新到 iOS 14 和 Xcode 12 后应用启动时间变慢 - Slow app launch time after updating to iOS 14 and Xcode 12 Swift:iOS 12.2应用启动时崩溃 - Swift: iOS 12.2 Crash of the app on launch 从Xcode9.2使用存档的内置应用程序启动文件后,iOS应用程序崩溃 - Ios App Crashing After Launching with Archived App Built file from Xcode9.2 UIViewControllerRepresentable 在 Xcode 14 iOS 16 上崩溃 - UIViewControllerRepresentable is crashing on Xcode 14 iOS 16 启动屏幕在 iOS 14 和 Xcode 12 上不起作用 - Launch Screen not working on iOS 14 with Xcode 12 应用程序在iOS 11中因“dyld:Library not loaded”错误而崩溃,但在iOS 10.3.2和Xcode 8.3.3中运行正常 - App crashing on launch with “dyld: Library not loaded” error in iOS 11, but was running fine in iOS 10.3.2 and Xcode 8.3.3 有没有办法在带有过时版本的Xcode和macOS的iOS 12.2上运行应用程序? - Is there a way to run an app on iOS 12.2 with an outdated version of Xcode and macOS? iOS应用程序崩溃并显示“无法及时启动” - iOS app crashing with “failed to launch in time” iOS 4.3.2用户报告应用程序在启动时崩溃 - iOS 4.3.2 user reported app crashing on launch iOS(Fabric):Crashlytics在启动时崩溃的应用 - iOS (Fabric): Crashlytics crashing app on launch
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM