cloudKit user can't fetch private database

If I am in debug mode running my app from xcloud connected to my iPad, I can fetch records from my private data base. If I disconnect from my iMac I can still fetch records from my private data base. If I install the same version and build using test flight, my testers can not fetch records from their private data base. In fact we are not sure they can upload records to their private data base as well.


1. Is their something that my testers need to do to be able to use their private records. The app is showing up in the list of apps using iCloud in their settings.

2. Is there even any way for me to view the logs for the testers private data base activity.

Accepted Answer

There is the development environment and the production environment. TestFlight hits the production environment. Running from Xcode you need to explicitly target the production environment using a key/value in your entitlements plist.

That worked. Thank you. I would have never figured that out.

cloudKit user can't fetch private database
 
 
Q