Connection to plugin invalidated while in use UIImagePickerController

I am trying to pick images from the PhotoLibrary. But When I tried to open the Photo Library by clicking the button, an empty screen appears with the following error. And this error are showed: UIImagePickerController UIViewController create error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.apple.mobileslideshow.photo-picker.viewservice was interrupted, but the message was sent over an additional proxy and therefore this proxy has become invalid."
What do I have to do?. Please Someone Guide me through. Thankyou.

Answered by Selva-Vignesh in 644770022
Brother, I am facing the exact similar error. What could I have done wrong?. I searched about this on the Internet for about 8 hours. Nothing fixed my error. Can someone help me through this please?.

Accepted Answer
Brother, I am facing the exact similar error. What could I have done wrong?. I searched about this on the Internet for about 8 hours. Nothing fixed my error. Can someone help me through this please?.

I have not found a solution for it yet.
Same problem. Im using code that I know works as It has worked previously and works on other friends computers. I tried using older xcode versions and reinstalling xcode both of which failed. Any solution to this would be extremely helpful.
this problem solved with me when update Xcode to last version 12.2
I am seeing the same issue, but only on iOS 13.6 running on an iPhone 11. I do not see it on an iPhone 12 Pro running iOS 14 and I can't re-create it with any simulator, including an iPhone 11 sim running iOS 13.6!

Xcode 12.2 does not help. (We first saw this problem in August, 2020.)
Connection to plugin invalidated while in use UIImagePickerController
 
 
Q