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

升级了Xcode8,但是我的真机是iOS9系统,添加了UserNotifications.framework依赖库,真机调试出现如下报错(真机版本9.2)

E30E64D9-CA74-4496-85D8-E1541C8039DD.png

解决方法就是

target下的Build Phases标签里,
找到Link Binary With Libraries,
在里面找到UserNotifications.framework,
把status由Required 修改成Optional,然后再运行就ok了

dyld: Library not loaded: /System/Library/Frameworks/UserNotifications.framework/UserNotifications Referenced from: /var/mobile/Applications/BCC39BE7-F54F-460A-963B-9238F3E0DA06/SFoofSave.app/SFoofSav_第1张图片
DBBEA637-E982-46C0-98E1-B092D5088E8B.png

其他的Framework也是一样

你可能感兴趣的:(dyld: Library not loaded: /System/Library/Frameworks/UserNotifications.framework/UserNotifications Referenced from: /var/mobile/Applications/BCC39BE7-F54F-460A-963B-9238F3E0DA06/SFoofSave.app/SFoofSav)