我在物理设备上运行应用程序时遇到问题,但在模拟器上运行时运行良好。
错误:
Thread 1: EXC_BREAKPOINT (code=1, subcode=0x120021088)
日志:
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. 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
附注我没有把我的代码放在这里,因为我只是在我的 iPhone 上运行它并且运行良好,之后我没有更改任何一行代码。
P.P.S 有人以前遇到过这个错误吗?
最佳答案
我通过将 xcode 更新到最新的测试版解决了这个问题。
关于ios - 在物理设备上测试我的应用程序(使用 swift)时崩溃,线程 1 : EXC_BREAKPOINT (code=1, 子代码 = 0x120021088),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31679602/