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
1
vote
1 answer

CloudKit Custom Zones in Production Environment

iCloud integration works in a development environment and fails in a production environment. It would appear that the custom record zones are not being deployed alongside the record types. Allow me to explain. Configuration: The iCloud development…
AVS
  • 373
  • 3
  • 19
1
vote
0 answers

How to prevent "ATOMIC_ERROR" with CloudKit?

The last few days I see that some users are generating a lot of errors that are labeled as "ATOMIC_ERROR" in the CloudKit dashboard Telemetry view. I have search a bit on this, but I see only some documentation related to CloudKit JS. I don't use…
Ely
  • 8,259
  • 1
  • 54
  • 67
0
votes
0 answers

App already in production and uses CloudKit. I added new attributes in CloudKit. If I deploy from development to release, does it create a problem?

My App already in production and uses CloudKit. I have added new attributes in CloudKit. If I deploy from development to release, does it create a problem? I mean for my app which already in release and don't know anything about new attribute.
Steven
  • 762
  • 1
  • 10
  • 27
0
votes
0 answers

How do I limit the number of times a user can perform an action in Swift using CloudKit?

I'm trying to limit the number of times a user can perform an action in a month. I understand that storing a counter in NSUserDefaults is low security as the user can easily go in and modify the stored variable, which I want to avoid. Since I don't…
cyril
  • 3,020
  • 6
  • 36
  • 61
0
votes
1 answer

CloudKit "Deploy to Production" doesn't show record changes, "Deploy" greyed out

When I click "Deploy to Production" in CloudKit, it looks like this: As you can see, there's two updates to indexes. But the problem is, that's not the only change I made to my schema - there's new fields on some record types. They're not showing…
Morgan Harris
  • 2,589
  • 14
  • 17
0
votes
1 answer

How can I see values saved in CloudKit Dashboard?

So I was able to save data in the dashboard, but I'm only able to see the keys in Cloudkit's dashboard. How do I actually see the values for the keys? Here is my code:
ScottyBlades
  • 12,189
  • 5
  • 77
  • 85
0
votes
1 answer

How to let multiple users update one of my CloudKit records at the same time without overlapping?

I have a "like button" and all the users use it at the same time. It should increment the value of like record in the cloud container by one, or decrease it by one. How can I guarantee that the update happens to the last version of the record? I…
Michsedki
  • 1
  • 2
0
votes
1 answer

Is there any option to export all cloud kit data?

I am working on a application and I setup a development environment. Now I want to move to production environment. is There any option for moving all the data from development to production in cloud kit? or Can I export all the data in Json format?
Saurav Nagpal
  • 1,247
  • 1
  • 10
  • 27
0
votes
1 answer

CloudKit for Website and iOS

I would like to build an iOS app and a website. I would like to store the images and related meta data on CloudKit. I understand i can access the resources from the iOS app. Would I be able to access the same resources for building the website…
user1046037
  • 16,755
  • 12
  • 92
  • 138
0
votes
1 answer

Subscription type from development environment in Cloudkit not removed properly

I have created cksubscription with alertBody programatically and it works fine.For testing purpose at development environment,I deleted that subscription from cloudkit dashboard(not using code) and again created cksubscription with different…
bittu
  • 683
  • 7
  • 24
1
2