[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也是一樣

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容