ios - iOS 模拟器在 macOS Monterey 上崩溃
问题描述
在我使用 M1 在 macbook 上更新 macOS 后,我的项目在任何 iOS 模拟器上运行时都会崩溃(在物理设备上正确运行)。我使用 firebase、GoogleSignIn 和 FacebookLogin 作为我的 pod 包。我注意到其他没有 pod 的项目可以在模拟器上正常运行。我已经尝试过 xcode 12.5 的最新公共版本和 xcode 13 的第一个测试版。它们都不起作用。崩溃报告如下所示:
CrashReporter Key: 6A42AE7B-E923-027C-2A0C-C8BB6FEC5FCA
Hardware Model: MacBookAir10,1
Process: ToSports [10111]
Path: /Users/USER/Library/Developer/CoreSimulator/Devices/9F8401F5-AAAE-4F54-A093-5E26F429FC8C/data/Containers/Bundle/Application/321B292E-186C-445A-882D-D604A59C7183/ToSports.app/ToSports
Identifier: com.ToSports
Version: 1.0 (1)
Code Type: X86-64 (Native)
Role: Foreground
Parent Process: Exited process [10134]
Coalition: com.apple.CoreSimulator.SimDevice.9F8401F5-AAAE-4F54-A093-5E26F429FC8C [5668]
Responsible Process: SimulatorTrampoline [1056]
Date/Time: 2021-06-10 14:00:11.9151 +0300
Launch Time: 2021-06-10 14:00:05.8233 +0300
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: 4367589376
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
mapped file 104542000-10489e000 [ 3440K] r-x/r-x SM=COW ...t_id=b8410d3f
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: SIGNAL 11 Segmentation fault: 11
Terminating Process: exc handler [10111]
Triggered by Thread: 0
Application Specific Information:
Thread 0 Crashed:
0 ??? 0x7ff7fff98bd8 ???
1 <translation info unavailable> 0x104f1ee3c ???
2 dyld 0x20527b88f dyld4::prepareSim(dyld4::RuntimeState&, char const*) + 890
3 dyld 0x20527a6b5 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 244
4 dyld 0x20527a4b4 start + 388
5 dyld 0x205275000 ???
Thread 1:: com.apple.rosetta.exceptionserver
0 ??? 0x7ff7fff85320 ???
1 ??? 0x7ff7fff9e1a0 ???
Thread 2:: com.apple.rosetta.debugserver
0 ??? 0x7ff7fff85320 ???
1 ??? 0x7ff7fff9e1a0 ???
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x000000010cf75af8 rcx: 0x0000000000000000 rdx: 0x0000000000000001
rdi: 0x0000000000000000 rsi: 0x0000000000000000 rbp: 0x0000000000000000 rsp: 0x000000010d636000
r8: 0x7273e846fc4100e3 r9: 0x0000000000000000 r10: 0x000000010d636000 r11: 0x000000010d43f010
r12: 0x0000000000000000 r13: 0x000000010d43f060 r14: 0x00000002052e9080 r15: 0x0000000000000000
rip: <unavailable> rfl: 0x0000000000000283
tmp0: 0x0000000104f0cc64 tmp1: 0x0000000104f0bf8c tmp2: 0x0000000205293ca3
Binary Images:
0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
0x205275000 - 0x2052dcfff dyld (*) <4e207376-cc5d-3986-a0bd-4d09f4217e68> /usr/lib/dyld
EOF
Model: MacBookAir10,1, BootROM 7429.0.72.0.3, proc 8:4:4 processors, 8 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: Wi-Fi, AirPort, en0
USB Device: USB 3.1 Bus
USB Device: USB 3.1 Bus
Thunderbolt Bus: MacBook Air, Apple Inc.
Thunderbolt Bus: MacBook Air, Apple Inc.
有没有人遇到过这样的问题?
解决方案
我遇到了同样的问题并尝试了各种工作。最后,升级到 Monterey Beta 3,问题就会消失。
推荐阅读
- javascript - Typescript 的声明合并使用 ts-node 无法按预期工作
- angular - Ionic/Angular 每个设备中的显示相同
- ajax - 添加 MANUAL 换行符时发送 AJAX 数据
- kotlin - 在 Kotlin 中格式化浮点值
- powerquery - 在 Power Query 中,根据值是否存在于另一列中填充列
- android - 我有一个固定在底部栏的 FAB,它有错误的行为
- wordpress - 让用户的总订单在某个值之间
- python - Plotting vertical lines in matplotlib.animation over a scatter plot
- c# - C# Serilog conditional logging if one fails?
- reactjs - How to pass props to child component based on dynamic route