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

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)