I'm using a UIDocumentPickerViewController in my iOS, and it will sometimes crash. It's just the view controller that crashes; the app itself is fine. I noticed this in Pages as well. When it crashes during debugging, I get the following error:
plugin com.apple.UIKit.fileprovider.default interrupted
I cannot find a good way to reproduce the issue. Is there something I can do to prevent (or at least minimize) these crashes?
Is it possible that you are having connectivity issues that could be creating a race condition? Try using something like FXReachability to receive notices on network status changes to see if there's a correlation.
After researching a lot I came to an important conclusion :
My suggestion would be minimize the UI updation and make those changes in background so that the opening of picker is seamless.
The transition between the UI changes and displaying document picker will be smooth if you minize any UI updates.
My issue was solved after making those changes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With