My app uses CloudKit. If you go to the Settings App while my app is running and, in the Settings App, you switch the 'Allow apps to store documents and data in iCloud' switch for my app on (or off) I get a crash:
Last exception Backtrace (0)
_exceptionPreprocess
-[__NSArrayM removeObjectAtIndex:]
0x100068000
_dispatch_call_block_and_release
UIAplicationMain
0x100068000
start
It works fine when restarted in the new on (or off) switch setting.
I have protected all 'removeObjectAtIndex' references so I don't think it is from my code.
Does anyone no what to do about this? Does anyone have a similar problem? Does anyone NOT have this problem?