[英]Crashed When testing my app (using swift) on a physical device, Thread 1: EXC_BREAKPOINT (code=1, subcode=0x120021088)
I have a problem when running my app on a physical device, but it works fine when I run that on a simulator. 在物理设备上运行我的应用程序时遇到问题,但是在模拟器上运行它时,它可以正常工作。
Error: 错误:
Thread 1: EXC_BREAKPOINT (code=1, subcode=0x120021088) 线程1:EXC_BREAKPOINT(代码= 1,子代码= 0x120021088)
Logs: 日志:
dyld: Library not loaded: @rpath/libswiftCore.dylib Referenced from: /private/var/mobile/Containers/Bundle/Application/0E769751-670F-4E12-90D3-A51C3DC14793/CenterBrain.app/CenterBrain Reason: no suitable image found. dyld:未加载库:@ rpath / libswiftCore.dylib引用自:/private/var/mobile/Containers/Bundle/Application/0E769751-670F-4E12-90D3-A51C3DC14793/CenterBrain.app/CenterBrain原因:未找到合适的图像。 Did find: /private/var/mobile/Containers/Bundle/Application/0E769751-670F-4E12-90D3-A51C3DC14793/CenterBrain.app/Frameworks/libswiftCore.dylib: mmap() error 1 at address=0x1001F8000, size=0x0015C000 segment=__TEXT in Segment::map() mapping /private/var/mobile/Containers/Bundle/Application/0E769751-670F-4E12-90D3-A51C3DC14793/CenterBrain.app/Frameworks/libswiftCore.dylib 确实找到了:/private/var/mobile/Containers/Bundle/Application/0E769751-670F-4E12-90D3-A51C3DC14793/CenterBrain.app/Frameworks/libswiftCore.dylib:mmap()错误1地址为0x1001F8000,大小= 0x0015C000段= __ TEXT在Segment :: map()映射/private/var/mobile/Containers/Bundle/Application/0E769751-670F-4E12-90D3-A51C3DC14793/CenterBrain.app/Frameworks/libswiftCore.dylib
And here is the screenshot: 这是屏幕截图:
PS I did't put my code up here because I just ran it on my iPhone and it worked fine, after that I didn't change a single line of my code. PS:我没有将代码放在这里,因为我只是在iPhone上运行了它,并且运行良好,此后,我没有更改任何一行代码。
PPS Anyone got this error before? PPS有人收到过此错误吗?
我通过将xcode更新到最新的beta版本来解决了该问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.