ios开发使用cocoapods倒入一堆的三方库之后开始崩溃了。发觉是导入极光引用的iOS10UserNotifications.framework导致的问题 Reason: image not found

版权声明: https://blog.csdn.net/qq_35122556/article/details/80020368

报错内容

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

  Referenced from: /var/containers/Bundle/Application/AE240A9C-D59D-4A81-A112-1DFBF6020FF2/WeiWuLian2.1.app/WeiWuLian2.1

  Reason: image not found

 解决办法:

很明显是 UserNotifications.framework    image not found   , 因为这个framework 是仅在ios10上可以用的。所以嘞。如下

Build Phases  --->     Link Binary With Libraries 里 点击➕添加 UserNotifications.framework     然后Required 改成Optional。然后就OK啦。

个人认为是这么设置,不支持的系统就默认干掉这个玩意了。

猜你喜欢

转载自blog.csdn.net/qq_35122556/article/details/80020368