切换到Xcode 10会导致“ UserNotifications.framekwor dyld:库未加载崩溃”,适用于iOS9 [英] Switching to Xcode 10 causes `UserNotifications.framekwor dyld: Library not loaded crash` for iOS9
问题描述
我们有一个应用程序可以正常工作,并且在Xcode 9中将 UserNotification.framework
链接为必需的
框架
We have an app that is working properly with the UserNotification.framework
being linked as required
framework in Xcode 9. Everything works smooth here.
现在我们切换到Xcode10。但是在必需的
潜在客户链接此框架的地方到
Now we are switching to Xcode 10. But there linking this framework as required
leads to
dyld: Library not loaded: /System/Library/Frameworks/UserNotifications.framework/UserNotifications
Referenced from: /var/containers/Bundle/Application/1D41BD68-9B88-4D5D-B7AB-0D1C31979964/App.app/App
Reason: image not found
如果我将其切换为可选
推送通知(通过对讲机)将不再起作用。
If I switch it to optional
push notification (via Intercom) won't work anymore.
原因是什么?我们该如何解决?为什么它甚至可以在Xcode 9中使用?
What is the reason? How can we fix that? Why is it even working in Xcode 9?
使用
@import UserNotification
通过导入并实际使用(在 AppDelegate.m
),像这样
Its fixed by importing and using it actually (in AppDelegate.m
) like this
UNNotificationRequest* unr = [UNNotificationRequest alloc];
unr = nil;
为什么?
它与我已经遇到的同一问题有关。
It is related to the same issue I have experienced already.
CABTMidiCentralViewController used in Storyboard only working if using code reference
更多一般性问题
推荐答案
UserNotification SDK可用iOS 10+,尝试将部署目标更新为iOS 10 +
UserNotification SDK is available on iOS 10+, Try to update the deployment Target to iOS 10 +
这篇关于切换到Xcode 10会导致“ UserNotifications.framekwor dyld:库未加载崩溃”,适用于iOS9的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!