Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIDocumentPickerViewController crashing

Tags:

ios

icloud

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?

like image 321
Halen Avatar asked Oct 21 '14 19:10

Halen


2 Answers

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.

like image 107
nod Avatar answered Nov 20 '22 09:11

nod


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.

like image 1
Ashish Avatar answered Nov 20 '22 10:11

Ashish