我正在搞清楚一个非常奇怪的问题。我的应用程序仅在iPhone X上崩溃,只在设备上崩溃,而不是在模拟器上。看一下调试仪器,似乎RAM达到了它的最大值并且它崩溃了。
在调试区域出现:
ZTL City(6387,0x16c707000) malloc: *** mach_vm_map(size=9437184) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
ZTL City(6387,0x16c81f000) malloc: *** mach_vm_map(size=9437184) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
ZTL City(6387,0x16c2eb000) malloc: *** mach_vm_map(size=9437184) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
ZTL City(6387,0x16c707000) malloc: *** mach_vm_map(size=9437184) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
ZTL City(6387,0x16c377000) malloc: *** mach_vm_map(size=9437184) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
ZTL City(6387,0x16c793000) malloc: *** mach_vm_map(size=9437184) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
ZTL City(6387,0x16c81f000) malloc: *** mach_vm_map(size=9437184) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
有人知道为什么吗?当从Map选项卡启用FlyOver时,它仅在iPhone X上发生并直接在设备上发生。
谢谢!