快速代码崩溃,日志:dyld:未加载库:@rpath/libswiftCore.dylib [英] swift code crash ,log : dyld: Library not loaded: @rpath/libswiftCore.dylib

查看:15
本文介绍了快速代码崩溃,日志:dyld:未加载库:@rpath/libswiftCore.dylib的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我调试了一个简单的swift app,在模拟器上可以正常运行,但是在真机上运行马上就crash了.

I debug a simple swift app , it can normally running in the simulator, but on a real machine running on the crash immediately .

系统版本,iOS 8xcode 版本,6.0.1

system version , ios 8 xcode version , 6.0.1

崩溃日志

dyld:库未加载:@rpath/libswiftCore.dylib 引用自:/private/var/mobile/Containers/Bundle/Application/002E2F03-EE10-433B-B95F-AE3760E777DA/sMdp.app/sMdp原因:没有找到合适的图片.发现:/private/var/mobile/Containers/Bundle/Application/002E2F03-EE10-433B-B95F-AE3760E777DA/sMdp.app/Frameworks/libswiftCore.dylib:地址=0x100104000,大小=0x00194000 段=__TEXT 处的 mmap() 错误 1在 Segment::map() 映射/private/var/mobile/Containers/Bundle/Application/002E2F03-EE10-433B-B95F-AE3760E777DA/sMdp.app/Frameworks/libswiftCore.dylib

dyld: Library not loaded: @rpath/libswiftCore.dylib Referenced from: /private/var/mobile/Containers/Bundle/Application/002E2F03-EE10-433B-B95F-AE3760E777DA/sMdp.app/sMdp Reason: no suitable image found. Did find: /private/var/mobile/Containers/Bundle/Application/002E2F03-EE10-433B-B95F-AE3760E777DA/sMdp.app/Frameworks/libswiftCore.dylib: mmap() error 1 at address=0x100104000, size=0x00194000 segment=__TEXT in Segment::map() mapping /private/var/mobile/Containers/Bundle/Application/002E2F03-EE10-433B-B95F-AE3760E777DA/sMdp.app/Frameworks/libswiftCore.dylib

推荐答案

只要在 Keychain 中找到你的证书,右键 -> 获取信息 -> 信任 -> 找到一个名为When using this certificate"的字段-> 选择使用系统默认值"选项.

Just go to your certificates in Keychain , Right Click -> Get Info -> Trust - > find a field with name "When using this certificate"-> Select "use system default" option.

这篇关于快速代码崩溃,日志:dyld:未加载库:@rpath/libswiftCore.dylib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆