【问题标题】:Picker Unavailable. There was an error while preparing the picker. Please try again later选择器不可用。准备选取器时出错。请稍后再试
【发布时间】:2021-01-15 04:39:33
【问题描述】:

我在使用照片选择器时遇到此错误,它只是在我向下滑动以下载更多照片或点击搜索框时偶尔出现。

2020-09-29 21:20:21.268201+0700 Widgets[16820:1808484] [lifecycle] [u 154CDFD9-7610-4333-99DE-0FDA8CF04E77:m (null)] [com.apple.mobileslideshow.photospicker(1.0)] Connection to plugin interrupted while in use.
2020-09-29 21:20:21.268855+0700 Widgets[16820:1808408] [lifecycle] [u 154CDFD9-7610-4333-99DE-0FDA8CF04E77:m (null)] [com.apple.mobileslideshow.photospicker(1.0)] Connection to plugin invalidated while in use.
2020-09-29 21:20:21.268581+0700 Widgets[16820:1806436] [Picker] Picker failed with error: Error Domain=PXErrorDomain Code=-1 "PHPickerViewController did receive interruption." UserInfo={NSDebugDescription=PHPickerViewController did receive interruption.}
2020-09-29 21:20:21.293818+0700 Widgets[16820:1806436] viewServiceDidTerminateWithError:: Error Domain=_UIViewServiceInterfaceErrorDomain Code=3 "(null)" UserInfo={Message=Service Connection Interrupted}

我该如何解决? :(

【问题讨论】:

  • 你曾经解决过这个问题吗?我收到了相同的控制台错误消息,除了屏幕上的消息现在是“无法加载项目”,下方有一个按钮,上面写着“再试一次”。点击按钮加载项目。

标签: swiftui


【解决方案1】:

我遇到了同样的错误,并且能够通过将 .sheet 修饰符(用于选择器)从列表行移动到列表本身来解决我的问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-05-14
    • 2018-03-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多