Currenty we are implementing CloudKit user access restrictions as described here https://developer.apple.com/documentation/cloudkit/changing_access_controls_on_user_data
to prepare our app for GDPR.
To be able to let the user restrict/unrestrict access to CloudKit an API Token must be created in the CloudKit dashboard.
In development environment this works flawless. We are able to let the user restrict and unrestrict CloudKit access.
In production environment it is not possible to create an API token. Whenever we want to save the new token an error message is displayed:
There was a problem saving API Token “Token”.
So we tried re-deploying the development environment to the production environment and hoped that the API Token would deploy too, but the dashboard doesn't let us re-deploy because it detects no changes.
What can we do? Whats the correct way to create API Tokens in production environment?