Two iCloud devices get different results with NSMetaDataQuery

I use iCloud to store small audio files using the simple UIDocument class. Running iOS 5.1 on iPhone 4 and iPad 1. iPad communicates properly with the iCloud container. When I create documents, I see that they appear in iCloud from Settings-> iCloud-> Storage & Backup-> ManageStorage-> MyAppName on iPhone and iPad. However, the iPhone seems to be connecting its own separate store to it. The files that I create there do not appear in the settings on any device, but it seems to go somewhere in some kind of container. I see them when running NSMetaDataQuery (but I do not see documents from the real iCloud container).

How the problem started: When I first created the iCloud identifier and the container identifier, I omitted "com". prefix from the store name. This worked fine until I sent Apple an application update, and they immediately rejected the download with a link to an invalid iCloud container identifier. My problems started after I changed the identifier. I uninstalled and restarted the app on both devices, but the iPhone was still stuck using what seems like an invisible iCloud container.

Please help me get my phone back to a real iCloud container. Thank!

+3
source share
1 answer

This seems to be Apple's bug with iCloud. I restored my iPhone 4s to their original settings, and now everything works fine.

+2

All Articles