错误:can';t分配区域Swift Xcode 9.2 iPhone X

错误:can';t分配区域Swift Xcode 9.2 iPhone X,swift,xcode,maps,malloc,iphone-x,Swift,Xcode,Maps,Malloc,Iphone X,我在想一个非常奇怪的问题。我的应用程序只是在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_e

我在想一个非常奇怪的问题。我的应用程序只是在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
有人知道为什么?只有当从地图选项卡启用飞越时,iPhone X和设备上才会出现这种情况


谢谢大家!

嗨@Pietro Messineo,你找到解决上述问题的方法了吗,因为最近几天我也面临同样的问题。嗨@ZarnaParikh不知道。。。这是一个仅与新iPhone机型的内存管理相关的问题。然后苹果发布了Xcode的更新,这个问题已经自动解决了。