[iOS Xcode9报错]dyld: Library not loaded: /System/Library/Frameworks/UserNotifications.framework/UserNotifications

升级了Xcode9,真机调试出现如下报错

dyld: Library not loaded: /System/Library/Frameworks/UserNotifications.framework/UserNotifications
  Referenced from: /var/mobile/Applications/BCC39BE7-F54F-460A-963B-9238F3E0DA06/SFoofSave.app/SFoofSave
  Reason: image not found

原因:在我的低版本手机里,Xocde的高版本Framework不支持
解决方法就是:
在target下的Build Phases标签里, 找到Link Binary With Libraries, 在里面找到UserNotifications.framework, 把status由Required 修改成Optional,然后再运行就OK


UserNotification.framework.png

其他的Framework也是一样

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容