CloudKit: switch a container environment from development to production

I am creating a test tool for inspecting content in CloudKit, but I want to be able to choose the container environment.

On iOS, you can choose Development or Production environment when exporting your app for ad hoc testing, but you don't have this option on OS X. It always indicates Development, environment.

Does anyone know if there is a programmatic way to set or select the container environment you want to work with, either on OS X or iOS?

+3


source to share


2 answers


In the file permissions add a line com.apple.developer.icloud-container-environment

and you can toggle the value of that value back and forth between Development

and Production

.



enter image description here

+5


source


I know it might be a little overdue for those who posted, but for others with the same problem, in the file the permissions change com.apple.developer.icloud-container-environment

from Development

to Production

. Then uninstall your app from your device to get a clean build. When you run it, it should work. The key must have a clean assembly.



0


source







All Articles