这不是一个答案。我发现这很长,无法适合评论。
我在qemu中运行Catalina 10.15.4。 因此,我猜这个问题与虚拟机有关。
“显示剪切内容”对我没有用。 但是在我点击“调试内存图”后,xcode崩溃并给了我:
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libc++abi.dylib 0x00007fff647be0c1 __dynamic_cast + 23
1 com.apple.Jet 0x00007fff52785675 jet_context_OpenGL::create_program(jet_function*, jet_function*) + 69
2 com.apple.SpriteKit 0x00007fff3a3f4127 SKCRenderer::loadShaders() + 441
3 com.apple.SpriteKit 0x00007fff3a3f6bcb SKCRenderer::SKCRenderer(std::__1::shared_ptr<jet_context>) + 767
4 com.apple.SpriteKit 0x00007fff3a32513e -[SKView _ensureRenderer] + 69
5 com.apple.SpriteKit 0x00007fff3a325791 -[SKView _commonInit] + 648
6 com.apple.SpriteKit 0x00007fff3a32b475 -[SKView initWithFrame:] + 109
7 com.apple.DTGraphKitSpriteKitAssets 0x000000013b82267c 0x13b811000 + 71292
8 com.apple.AppKit 0x00007fff2a76ecc7 -[NSView init] + 44
9 com.apple.dt.instruments.DTGraphKit 0x0000000111167d5e _sharedInit + 78
10 com.apple.dt.instruments.DTGraphKit 0x0000000111167f38 -[DTObjectGridGraph initWithCoder:] + 56
11 com.apple.dt.IDE.IDEInterfaceBuilderCocoaIntegration 0x00000001200fceda IBCreateSwappedObjectForCoder + 78
12 com.apple.dt.IDE.IDEInterfaceBuilderCocoaIntegration 0x00000001200fccf1 -[NSClassSwapper(IBNSClassSwapperPrivate) ibSwizzledInitWithCoder:] + 63
13 com.apple.UIFoundation 0x00007fff5e4a7650 UINibDecoderDecodeObjectForValue + 747
14 com.apple.UIFoundation 0x00007fff5e4a784b UINibDecoderDecodeObjectForValue + 1254
15 com.apple.UIFoundation 0x00007fff5e4a7358 -[UINibDecoder decodeObjectForKey:] + 251
16 com.apple.AppKit 0x00007fff2a70722c -[NSView initWithCoder:] + 1846
17 com.apple.dt.DVTStructuredLayoutKit 0x00000001060dae07 -[DVTLayoutView_ML initWithCoder:] + 42
18 com.apple.dt.DVTUserInterfaceKit 0x00000001061f356e -[DVTBorderedView initWithCoder:] + 97
19 com.apple.dt.IDE.IDEInterfaceBuilderCocoaIntegration 0x00000001200fceda IBCreateSwappedObjectForCoder + 78
20 com.apple.dt.IDE.IDEInterfaceBuilderCocoaIntegration 0x00000001200fccf1 -[NSClassSwapper(IBNSClassSwapperPrivate) ibSwizzledInitWithCoder:] + 63
21 com.apple.UIFoundation 0x00007fff5e4a7650 UINibDecoderDecodeObjectForValue + 747
22 com.apple.UIFoundation 0x00007fff5e4a7358 -[UINibDecoder decodeObjectForKey:] + 251
23 com.apple.AppKit 0x00007fff2a6cb981 -[NSNibConnector initWithCoder:] + 89
24 com.apple.AppKit 0x00007fff2a6cb8c4 -[NSNibOutletConnector initWithCoder:] + 414
…
因此,我猜这与OpenGL有关。
我尝试使用真实设备测试(上述情况发生在iOS模拟器上)。 但是我无法将我的iPhone连接到虚拟的macOS系统。 它一直卡在托管的Ubuntu系统上。
需要进一步深入挖掘...