Questions tagged [cloudkit-environments]

CloudKit provides separate development and production environments for your record types and data. The development environment is a more flexible environment that is available only to members of your development team. When your app adds a new field to a record and saves that record in the development environment, the server updates the schema information automatically.

You can use this feature to make changes to your schema during development, which saves time. One caveat is that after you add a field to a record, the data type associated with that field cannot be changed programmatically. To change a field’s type, you must delete the field in CloudKit Dashboard and add it again with the new type.

Prior to deploying your app, you migrate your schema and data to the production environment using CloudKit Dashboard. When running against the production environment, the server prevents your app from changing the schema programmatically. You can still make changes with CloudKit Dashboard but attempts to add fields to a record in the production environment result in errors.

Note: iOS Simulator works only with the development environment. When you are ready to test your app in a production environment, do so from a device.

25 questions
7
votes
3 answers

How can CloudKit environment be determined at runtime?

Is there a programmatic way to discover whether my app is talking to the CloudKit Development or Production environment? (I know I can look at the com.apple.developer.icloud-container-environment key in Entitlements.plist to make an intelligent…
Greg Maletic
  • 6,225
  • 8
  • 54
  • 73
4
votes
1 answer

Move record from development to production in CloudKit?

I have plenty of record manually preloaded to CloudKit but in the development environment. When I deployed development environment, records were not moved into production environment. It is really annoying. Any easy way to move records?
János
  • 32,867
  • 38
  • 193
  • 353
3
votes
2 answers

CloudKit dashboard access for free developer account added to an existing Individual Apple Developer Program team

I created a new Gmail address for CloudKit testing purposes only, and invited this address to join my team on App Store Connect. I see the new account in the "Developer" part of the Users page. But when I try to add this new user on the container…
3
votes
2 answers

CloudKit: Access development environment after deploy to AppStore?

I have built a CloudKit app with a rather complex record graph to prove our MVP with our customers. Development has been next to flawless and every problem could easily be derived to crappy code. Now we've deployed our first version of the app. The…
jollyCocoa
  • 691
  • 7
  • 20
3
votes
0 answers

iOS CloudKit Fetching assets stop working

I am working on application in which I stored the images in a cloud kit public database.I fetch the images from the cloud kit using perform query. Suddenly it stops working. It shows me error: Internal Error" (1/1000); "Encountered an error fetching…
3
votes
2 answers

CloudKit API with Python

My iOS app uses CloudKit as it's backend. The app basically collects simple user info (name, company, email phone). I would like to export all this data from the cloudkit dashboard into a csv file so that I can then upload this data into a…
2
votes
0 answers

CloudKit delete records at specific date time

I want to delete a record in a shared cloud container at a specific date time. When the record is created I know when it should be deleted. Is there a way to create a trigger that will handle the work for me? The only solution I came up with…
user1199624
2
votes
1 answer

Just in time schema in Cloudkit

I want to use private database of cloudkit for my app, so for designing i was looking for something which would easily map my model classes to cloudkit without any extra efforts. so i came across something interesting in the apple document where it…
Niki
  • 1,566
  • 1
  • 19
  • 36
2
votes
1 answer

Deleting CloudKit Records Swift 4

I am having issues deleting CloudKit records. This is my first time dealing with the API and apparently there are two ways to do this. Saving records is straight forward and ostensibly so is deleting them, except this doesn't do it: func…
2
votes
1 answer

CloudKit Error: Not Authenticated on Mac but I'm Signed In

I'm using iCloud as a way to authenticate a user's identity in a Mac app. I use a bit of code to look up the user's recordName which is a unique string that helps my app know who they are without needing any personal details. func…
Clifton Labrum
  • 13,053
  • 9
  • 65
  • 128
2
votes
3 answers

Run Mac App with CloudKit connected to the Production environment

Has anyone succeeded to run a Developer ID signed Mac App with CloudKit and with access to the Production environment, using Xcode 8 beta 3? According to this diagram of Apple it should be possible, but all my attempts lead to crashes. What are the…
Ely
  • 8,259
  • 1
  • 54
  • 67
2
votes
1 answer

CloudKit operations execute in development version but sometimes hang in production version

I make calls to the iCloud database in two different ways in my app: 1. Calling a CKDatabase convenience method works perfectly in development (simulator) and production (device) environments: let privateDatabase =…
1
vote
0 answers

How to improve CloudKit server latency when uploading data

I am having a hard time uploading data to my CloudKit container in a series of 'modify records' operations. I have an 'uploader' function in my app that can populate the CloudKit private database with a lot of user data. I batch the records into…
Z S
  • 7,039
  • 12
  • 53
  • 105
1
vote
1 answer

Cloudkit JS - Is there possible to generate Api token dynamically without using iCloud dashboard

I need to access iCloud container private database data from web, so i am using cloudkit js and I can access the iCloud container private data using containerIdentifier and apiTokenAuth.apiToken. The apiToken is genereated by using iCloud…
1
vote
0 answers

How to list all devices on iCloud account?

Using Swift/Cloudkit, how can I simply list all the device names connected in my iCloud account? I just want a list of all the device names in the account.
newguy222
  • 111
  • 1
  • 11
1
2