Use a PHPickerViewController in SwiftUI | raywenderlich.com


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/19165608-integrating-uikit-swiftui/lessons/4

Hi,

I would like to integrate PHPickerViewController as you mentioned in the tutorial.

When I use the code of the 04-phpicker-in-swiftui/final directory it is not working on iPhone 12 with iOS 14.6. If try to use the search bar of the PHPicker I have the following error :

2021-07-12 18:09:58.742195+0200 ReadMe[15424:4695288] [lifecycle] [u 8AA45176-26FC-4A23-92F5-59508727377D:m (null)] [com.apple.mobileslideshow.photospicker(1.0)] Connection to plugin interrupted while in use.

2021-07-12 18:09:58.743037+0200 ReadMe[15424:4695286] [lifecycle] [u 8AA45176-26FC-4A23-92F5-59508727377D:m (null)] [com.apple.mobileslideshow.photospicker(1.0)] Connection to plugin invalidated while in use.

2021-07-12 18:09:58.756423+0200 ReadMe[15424:4695110] [Picker] Showing picker unavailable UI (reason: crashed) with error: (null)

2021-07-12 18:09:58.765558+0200 ReadMe[15424:4695110] viewServiceDidTerminateWithError:: Error Domain=_UIViewServiceInterfaceErrorDomain Code=3 โ€œ(null)โ€ UserInfo={Message=Service Connection Interrupted}

2021-07-12 18:09:59.931633+0200 ReadMe[15424:4695371] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 โ€œSpecified target process does not existโ€ UserInfo={NSLocalizedFailureReason=Specified target process does not exist}>

2021-07-12 18:10:01.429545+0200 ReadMe[15424:4695292] [lifecycle] [u 8AA45176-26FC-4A23-92F5-59508727377D:m (null)] [com.apple.mobileslideshow.photospicker(1.0)] Connection to plugin interrupted while in use.

2021-07-12 18:10:01.429728+0200 ReadMe[15424:4695290] [lifecycle] [u 8AA45176-26FC-4A23-92F5-59508727377D:m (null)] [com.apple.mobileslideshow.photospicker(1.0)] Connection to plugin invalidated while in use.

2021-07-12 18:10:01.440605+0200 ReadMe[15424:4695110] [Picker] Showing picker unavailable UI (reason: crashed) with error: (null)

Have you any idea why ?

Thank you

1 Like