dyld: Library not loaded: /System/Library/Frameworks/UserNotifications.framework/UserNotification...

真机运行报错,手机版本太低导致有一些框架用不了,提示如下:

dyld: Library not loaded: /System/Library/Frameworks/UserNotifications.framework/UserNotifications

 Referenced from: /var/containers/Bundle/Application/E2822CA4-5B2A-4678-904C-2A453BDEA68D/bluetoothLock.app/bluetoothLock

 Reason: image not found



这里只需要在TARGETS—>Build Phases —> Link Binary With Libraries里边,UserNoifications.framework 后面的status改成Optional,其他的框架也是这样解决


猜你喜欢

转载自blog.csdn.net/jwheat/article/details/80669832