模拟器可以运行,真机运行崩溃
日志打印:dyld: Library not loaded: /System/Library/Frameworks/UserNotifications.framework/UserNotifications
Referenced from: /var/containers/Bundle/Application/9D2EFC92-EB18-4E5C-B8C8-5C9432D03679/LekangHomes.app/LekangHomes
Reason: image not found
崩溃截图:
屏幕快照 2017-07-19 下午4.27.29.png
解决方法就是
target下的Build Phases标签里,
找到Link Binary With Libraries,
在里面找到UserNotifications.framework,
把status由Required 修改成Optional,然后再运行就
网友评论