升级Xcode8, 集成了iOS10的极光推送之后, iOS10真机测试8.3系统出现会崩溃, 崩溃信息如下:
dyld: Library not loaded: /System/Library/Frameworks/UserNotifications.framework/UserNotifications Referenced from: /var/containers/Bundle/Application/884D05C9-3FA7-4413-9E2B-E339749C43AF/hentane_App.app/hentane_App Reason: image not found
原因是高版本的Framework信息在低版本里面不支持引起的
解决的方法就是
target下的Build Phases标签里,找到Link Binary With Libraries, 在里面找到UserNotifications.framework, 把status由Required 修改成Optional