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

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

问题描述

我调试一个简单的swift应用程序,它可以正常运行在模拟器,但在一个真正的机器上运行的崩溃立即。

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

系统版本,ios 8
xcode版本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:
mmap()错误1在address = 0x100104000,size = 0x00194000 segment = __ TEXT
在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单击 - >获取信息 - >信任 - >找到一个名称为使用此证书 - >选择使用系统默认选项的字段。

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.

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

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