gpt4 book ai didi

ios - 今天在有限设备上扩展 "Unable to Load"

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:11:12 25 4
gpt4 key购买 nike

我有一个带有 Today Extension 的 iOS 应用程序。我们现在正在进行测试 (TestFlight),并且已经在大约十台设备上进行了测试。关联的小部件在所有这些设备上都可以正常显示,但其中一个设备除外。在一台设备上,Widget 显示可怕的“无法加载”消息。我们尝试过重启设备、删除/重新安装应用等。

查看设备日志,我认为这是第一个麻烦的引用:

container: WGMajorListViewController> Unable to load widget view controller with service (com.mycompany.MyApp.myApp-Today-Extension): Couldn\M-b\M^@\M^Yt communicate with a helper application.
container: WGMajorListViewController> No longer waiting on connection semaphore (<OS_dispatch_semaphore: 0x174c85410>)
container: WGMajorListViewController> Severed remote view controller connection
container: WGMajorListViewController> Widget disconnected unexpectedly
container: WGMajorListViewController> Aborting active life cycle sequence: <WGWidgetLifeCycleSequence: 0x175035460; sequenceID: com.mycompany.MyApp.myApp-Today-Extension.WGMajorListViewController.7/11/17, 3:13:00 PM; currentState: WGWidgetLifeCycleSequenceStateDidRequestRemoteView>
container: WGMajorListViewController> Remote view controller disconnected unexpectedly
container: WGMajorListViewController> Attempting to reconnect to remote view controller

扩展的代码没有尝试打开主机应用程序,所以这个错误让我很困惑。也许这是指内部 (iOS) 帮助应用程序?

第一行中的奇数转义字符在日志中。在这些行之后,它再次尝试,可能再尝试两次,然后失败。最终我看到 Can't request remote view controller that is blacklisted 并且设备在重启之前不会重试:

mediaserverd(CoreMedia)[27] <Notice>: -CMSessionMgr- cmsmHandleApplicationStateChange: CMSession: Client com.mycompany.MyApp.myApp-Today-Extension with pid '257' is now Terminated. Background entitlement: NO
mediaserverd(CoreMedia)[27] <Notice>: -CMSessionMgr- cmsmHandleApplicationStateChange: CMSession: Client com.mycompany.MyApp.myApp-Today-Extension with pid '259' is now Terminated. Background entitlement: NO
symptomsd(SymptomEvaluator)[121] <Notice>: 257 com.mycompany.MyApp.myApp-Today-Extension: Terminated (most elevated: Terminated)
symptomsd(SymptomEvaluator)[121] <Notice>: 259 com.mycompany.MyApp.myApp-Today-Extension: Terminated (most elevated: Terminated)
symptomsd(SymptomEvaluator)[121] <Notice>: Entry, display name com.mycompany.MyApp.myApp-Today-Extension uuid (null) pid 257 isFront 0
symptomsd(SymptomEvaluator)[121] <Notice>: Duplicate removal of display name com.mycompany.MyApp.myApp-Today-Extension
symptomsd(SymptomEvaluator)[121] <Notice>: Entry, display name com.mycompany.MyApp.myApp-Today-Extension uuid (null) pid 259 isFront 0
symptomsd(SymptomEvaluator)[121] <Notice>: Duplicate removal of display name com.mycompany.MyApp.myApp-Today-Extension
container: WGMajorListViewController> End sequence '(null)' with reason: disappearance transition
container: WGMajorListViewController> Can't end sequence as argument sequence ((null)) doesn't match active sequence ((null)), or there's no active sequence
container: WGMajorListViewController> Begin sequence with reason: appearance transition
container: WGMajorListViewController> Initiating new life cycle sequence: '<WGWidgetLifeCycleSequence: 0x17522b6e0; sequenceID: com.mycompany.MyApp.myApp-Today-Extension.WGMajorListViewController.7/11/17, 3:13:12 PM; currentState: WGWidgetLifeCycleSequenceStateQuiescent>'
container: WGMajorListViewController> Connection requested with reason: 'appearance transition'
container: WGMajorListViewController> Will request remote view controller
container: WGMajorListViewController> Can't request remote view controller that is blacklisted

我没有看到扩展代码本身的任何日志记录,也没有看到它实际启动的任何迹象。

有问题的设备是 iPhone 7 Plus,运行 iOS 10.3.2 的公共(public)版本。该小部件在所有其他设备上运行良好,其中许多也是 10.3.2。其他都不是 iPhone 7 Plus。该小部件在 iPhone 7 Plus 模拟器中运行良好。

虽然该版本是针对 iOS 9 和 Xcode 7 构建的,但同一设备可以正常运行 App Store 版本的小部件。新版本使用 10.3 作为 Base SDK,使用 Xcode 8.3.3。

有什么想法吗?

最佳答案

还有一次会发生这种情况,那就是如果在 Scheme 目标的“运行诊断”部分下,您已经打开了“线程 sanitizer ”/“未定义的行为 sanitizer ”。它似乎不喜欢这些选项。

关于ios - 今天在有限设备上扩展 "Unable to Load",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45059591/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com