[iOS Xcode8报错]dyld: Library not loaded: /System/Library/Frameworks/UserNotifications.framework/UserN
Posted 李洪强
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[iOS Xcode8报错]dyld: Library not loaded: /System/Library/Frameworks/UserNotifications.framework/UserN相关的知识,希望对你有一定的参考价值。
[ios Xcode8报错]dyld: Library not loaded: /System/Library/Frameworks/UserNotifications.framework/UserN
升级了Xcode8,但是我的真机是iOS7系统,在我解决了Xcode8不支持iOS7系统以后(http://blog.csdn.net/iOSTianNan/article/details/52619319),真机调试出现如下报错
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
其他的Framework也是一样
以上是关于[iOS Xcode8报错]dyld: Library not loaded: /System/Library/Frameworks/UserNotifications.framework/UserN的主要内容,如果未能解决你的问题,请参考以下文章
IOS运行报错 "dyld: Library not loaded" 原因分析
iOS开发之运行报错 dyld: Library not loaded: *** Reason: image not found
iOS 报错信息: dyld: Library not loaded: @rpath/XCTest.framework/XCTest Referenced from
iOS 报错信息: dyld: Library not loaded: @rpath/XCTest.framework/XCTest Referenced from: