使用照片选择器时出现此错误,当我向下滑动以下载更多照片或点击搜索框时,它只会偶尔出现。
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}
我如何解决它? :( 最佳答案
我遇到了同样的错误,并且能够通过将.sheet修饰符(用于选择器)从列表行移动到列表本身来解决我的问题。
关于swiftui - 选取器不可用。准备选取器时出错。请稍后再试,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/64121797/