I have an iCloud enabled app which works well. However, on testing, when my app is running and I either switch off or on Documents & Data for my specific app, via iCloud Settings, it crashes.
The only information for my crash in xCode is the call-stack...as shown. Otherwise, I'm at a loss. Any ideas?
My setup is this...
I am using iOS v7.1.2/Xcode 5.1.1 I am 'backing-up' snapshots of my database (zip files) in an iCloud folder known as 'Backup'...I'm assuming Apple would be OK with this setup, rather than copying everything to the documents folder.
I do at a certain point in my program create a use an NSMetaDataQuery to monitor the Backup folder but it is nil most of the time and not operating.
The system will crash at any point of the program if I change the setting in the Documents and Data part of iCloud config...(My Test App)
Note...Switching on or off the main Documents and Data UISwitch has no effect and app does not crash.
Other than that, there's not a lot going on. The zip file is simply copied to iCloud.