xcode - macOS Monteray - 应用程序在模拟器上崩溃
问题描述
在 macOS Monteray 上,模拟器在启动我的应用程序时崩溃。用最新的公共版本的 Xcode 和新版本的 Xcode (13) 尝试了这个。
我无法弄清楚是什么导致了这个问题。这似乎是 dyld4 的问题,但我无法弄清楚。
崩溃日志如下:
Incident Identifier: x
CrashReporter Key: x
Hardware Model: MacBookPro17,1
Process: x
Path: /Users/USER/Library/Developer/CoreSimulator/Devices/AC70815B-B962-44DD-A6A6-D55BB79B95D3/data/Containers/Bundle/Application/806832D2-06F0-4A52-8EA6-ABDD46730BCE/x - STG.app/x - STG
Identifier: com.x.x
Version: 2.2.68 (2)
Code Type: X86-64 (Native)
Role: Foreground
Parent Process: Exited process [9468]
Coalition: com.apple.CoreSimulator.SimDevice.AC70815B-B962-44DD-A6A6-D55BB79B95D3 [1805]
Responsible Process: SimulatorTrampoline [9011]
Date/Time: 2021-06-09 10:38:26.3481 +0200
Launch Time: 2021-06-09 10:38:25.3503 +0200
OS Version: macOS 12.0 (21A5248p)
Release Type: User
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000
VM Region Info: 0 is not in any region. Bytes before following region: 4301795328
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
mapped file 100683000-100c13000 [ 5696K] r-x/r-x SM=COW ...t_id=4af36c5b
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: SIGNAL 11 Segmentation fault: 11
Terminating Process: exc handler [9458]
Triggered by Thread: 0
Application Specific Information:
Thread 0 Crashed:
0 ??? 0x7ff7ffc1cbd8 ???
1 <translation info unavailable> 0x100f24ca4 ???
2 dyld 0x2012fe88f dyld4::prepareSim(dyld4::RuntimeState&, char const*) + 890
3 dyld 0x2012fd6b5 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 244
4 dyld 0x2012fd4b4 start + 388
5 dyld 0x2012f8000 ???
Thread 1:: com.apple.rosetta.exceptionserver
0 ??? 0x7ff7ffc09320 ???
1 ??? 0x7ff7ffc221a0 ???
Thread 2:: com.apple.rosetta.debugserver
0 ??? 0x7ff7ffc09320 ???
1 ??? 0x7ff7ffc221a0 ???
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000108f7aaf8 rcx: 0x0000000000000000 rdx: 0x0000000000000001
rdi: 0x0000000000000000 rsi: 0x0000000000000000 rbp: 0x0000000000000000 rsp: 0x0000000109621000
r8: 0xc119bf210ba000c6 r9: 0x0000000000000000 r10: 0x0000000109621000 r11: 0x0000000109445010
r12: 0x0000000000000000 r13: 0x0000000109445060 r14: 0x000000020136c080 r15: 0x0000000000000000
rip: <unavailable> rfl: 0x0000000000000283
tmp0: 0x0000000100f11c64 tmp1: 0x0000000100f10f8c tmp2: 0x0000000201316ca3
Binary Images:
0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
0x2012f8000 - 0x20135ffff dyld (*) <4e207376-cc5d-3986-a0bd-4d09f4217e68> /usr/lib/dyld
EOF
Model: MacBookPro17,1, BootROM 7429.0.72.0.3, proc 8:4:4 processors, 16 GB, SMC
Graphics: kHW_AppleM1Item, Apple M1, spdisplays_builtin
Memory Module: LPDDR4
AirPort: spairport_wireless_card_type_wifi, wl0: May 4 2021 18:24:35 version 18.20.281.2.7.8.107 FWID 01-7c11bd60
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: iPad, Ethernet, en11
Network Service: Wi-Fi, AirPort, en0
USB Device: USB 3.1 Bus
USB Device: USB 3.1 Bus
USB Device: iPad
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.
解决方案
推荐阅读
- mysql - SQL:同时使用 SUM 和 CAST
- node.js - 修改架构后,猫鼬查询挂起
- apache-spark - Spark 的 Dataset 的 limit 函数创建一个只有 1 个分区的新 Dataset。为什么?
- swift - SwiftUI 如何在 Light 主题(外观)上更改 TextField 的背景颜色?
- javascript - 单击屏幕以关闭画布外菜单
- excel - 如果找到,如何选择特定单元格并在另一个单元格中执行函数
- web-services - 如何在调用使用 SOAP 的外部 Web 服务后获得响应。- 动态 AX 2012 R3
- c++ - OpenGL - 创建一个立方体网格
- php - ImageMagick 的 SVG 输出出现格式错误
- c# - 如何使用 xamarin C# 从 iOS 上的广告中读取 kCBAdvDataManufacturerData 的值