I am working on an application where I recently decided to go with CloudKit, and now I am in the place where I need to implement the backend functionality. In short, this app will use collectionview to display images retrieved from the CK database. So far, I have simply dumped some images into a folder on my desktop and extracted / assorted images from there to display the collection. Then I used the CK toolbar to create some records and wrote an initialization method to try to restore them. I received various CKErrors, such as network failure, error completion without receiving a response from the server, could not send a valid signature, etc. I immediately decided that the problem was with my code, as this was my first attempt with CloudKit. However, I ran the latest code on my device before posting it to SO, and it worked! I received a successful response with the number of entries in the result array that I expected.
So now I know that you need more help extracting CKRecords, as I originally thought. But how to solve this problem using a simulator? I saw a few more messages stating that you logged into iCloud on the simulator. I believe that I, but do not know how to check, to be sure. In addition, I run Yosemite and Xcode 6.1.
Any help is appreciated!
Sonnyb
source share