美文网首页程序员@IT·互联网
真机调试的时候出现Reason: image not found

真机调试的时候出现Reason: image not found

作者: 小虾米的时光机 | 来源:发表于2017-05-02 17:56 被阅读0次

iOS运行的时候崩溃Reason: image not found

1.报错的信息

根据个人项目的不同 ,可能会出现不太相同报错信息 ,但是,这些信息都会有个共同的特点,就是 Reason: image not found;这是镜像找不到,而这里是UserNotifications.framework找不到

Paste_Image.png

dyld: Library not loaded: /System/Library/Frameworks/UserNotifications.framework/UserNotifications
Referenced from: /var/containers/Bundle/Application/67868DD8-21B8-4BED-8AA1-283DF471A229/Dingravel_IOS.app/Travel_IOS
Reason: image not found

2.分析错误原因

dyld: Library not loaded: /System/Library/Frameworks/UserNotifications.framework
这是镜像找不到,而这里是UserNotifications.framework找不到,先搜索一下你的工程里,这个地方报错的库有么有,没有的话 ,add 并且将required修改为optional
这样后再试一试

相关文章

网友评论

    本文标题:真机调试的时候出现Reason: image not found

    本文链接:https://www.haomeiwen.com/subject/bofhtxtx.html