ios - Nativescript 应用程序可以在模拟器上运行,但不能在真实设备上运行。崩溃报告说 EXC_BAD_ACCESS (SIGSEGV)
问题描述
我有一个Nativescript-Angular
移动应用程序。它在模拟器上运行良好。但是一旦它发布到 Apple 商店,它就适用于iphone 7等旧型号,但不适用于iphone 10/11/12。ios版本都是14+所以我不认为这是原因。
我从手机中提取了崩溃报告,它只有一些像这样的错误消息。谁能给我一些想法或指出我如何研究这个的正确方向?
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x000000000280b350
VM Region Info: 0x280b350 is not in any region. Bytes before following region: 4324461744
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 10442c000-104430000 [ 16K] r-x/r-x SM=COW ...e.app/LBELite
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [508]
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libobjc.A.dylib 0x000000019ffbc658 0x19ffb7000 + 22104
1 libobjc.A.dylib 0x000000019ffbcf88 0x19ffb7000 + 24456
2 NativeScript 0x0000000104da4930 0x104d30000 + 477488
...
Thread 1 name: JavaScriptCore bmalloc scavenger
Thread 1:
0 libsystem_kernel.dylib 0x00000001b8ef41ac 0x1b8ecc000 + 164268
...
Thread 2:
0 libsystem_pthread.dylib 0x00000001d6a58764 0x1d6a4e000 + 42852
...
Thread 3 name: Heap Helper Thread
Thread 3:
0 libsystem_kernel.dylib 0x00000001b8ef41ac 0x1b8ecc000 + 164268
...
Thread 4 name: Heap Helper Thread
Thread 4:
0 libsystem_kernel.dylib 0x00000001b8ef41ac 0x1b8ecc000 + 164268
...
Thread 5 name: Heap Helper Thread
Thread 5:
0 libsystem_kernel.dylib 0x00000001b8ef41ac 0x1b8ecc000 + 164268
...
Thread 6 name: Heap Helper Thread
Thread 6:
0 libsystem_kernel.dylib 0x00000001b8ef41ac 0x1b8ecc000 + 164268
...
Thread 7 name: Heap Helper Thread
Thread 7:
0 libsystem_kernel.dylib 0x00000001b8ef41ac 0x1b8ecc000 + 164268
...
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x000000000280b348 x1: 0x0000000280b34b60 x2: 0x0000000000000000 x3: 0x0000000000000034
...
esr: 0x92000006 (Data Abort) byte read Translation fault
解决方案
您使用的是哪个版本的 IOS 运行时?在我从 6.5.0 更新到 6.5.4 之前,我遇到了类似的问题。
推荐阅读
- mysql - 高 CPU 消耗 MySQL - db 500k 记录 wordpress
- python - Django默认隔离级别和db二进制日志格式错误
- prometheus - 带有 FIRING 警报的 AlertManager 行为
- ruby - 'NilClass' 单例实例在哪里实例化?
- delphi - 触摸屏上 TDrawGrid 中的 OnMouseMove
- python - Python - 从 JSON 中搜索和导出信息
- reactjs - 如何设置 GitHub Pages 来托管我的 React 应用程序?其他免费选项?
- python - 使用 numpy.savetxt 保存数据
- maven - 有没有办法限制 maven 或 jenkins 构建中少数 jar 的主要版本更新
- python - 如何在 Python 的 Tkinter 中的窗口上设置背景图片?