Ars*_*sim 5 xcode objective-c ios swift xcode12
我在 Xcode 12 模拟器中遇到奇怪的崩溃,在启动后立即发出信号 SIGABRT。它发生在 Xcode 12.0 和 Xcode 12.0.1 的已发布版本上,我已尝试使用最新的 beta 12.2。
应用程序在设备上运行良好。
由于日志较少,我无法追踪太多。以下是堆栈。
主题 1
dyld`__abort_with_payload:
0x1194b0ed4 <+0>: movl $0x2000209, %eax ; imm = 0x2000209
0x1194b0ed9 <+5>: movq %rcx, %r10
0x1194b0edc <+8>: syscall
-> 0x1194b0ede <+10>: jae 0x1194b0ee8 ; <+20>
0x1194b0ee0 <+12>: movq %rax, %rdi
0x1194b0ee3 <+15>: jmp 0x1194af408 ; cerror_nocancel
0x1194b0ee8 <+20>: retq
0x1194b0ee9 <+21>: nop
0x1194b0eea <+22>: nop
0x1194b0eeb <+23>: nop
Run Code Online (Sandbox Code Playgroud)
编辑添加异常断点后,获得以下控制台输出
dyld: Library not loaded: /usr/lib/libnfshared.dylib
Referenced from: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CoreNFC.framework/CoreNFC
Reason: no suitable image found. Did find:
/usr/lib/libnfshared.dylib: mach-o, but not built for platform iOS-sim
Run Code Online (Sandbox Code Playgroud)
在我的项目中,我没有使用 CoreNFC。它没有链接,也没有被豆荚使用,我已经检查过了
小智 0
我希望这有帮助:
从目标/应用程序/构建设置中删除“VALID_ARCHS”。
如果您有 Bitrise 版本,我建议添加:arm64 x86_64。因为由于某种原因,如果删除“VALID_ARCHS”,Bitrise 当前将会崩溃。
例子:
| 归档时间: |
|
| 查看次数: |
971 次 |
| 最近记录: |