Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use production CloudKit during development?

My iOS and Mac apps have been launched to the App Store and all of my users, including myself, are using the CloudKit production database. My question is, is there any way to target the production environment for my development builds? It seems there is no way to target the production environment outside of the Mac App Store, and for iOS, only Ad Hoc distribution can target the production environment.

like image 897
Eric Avatar asked May 12 '15 05:05

Eric


People also ask

Is CloudKit a backend?

CloudKit it's Apple's Backend as a Service platform and it's specially designed for iOS apps. CloudKit was introduced in the year 2014 as an amazing solution to integrate iCloud in your applications with ease. This cloud solution has been introduced by Apple.

What is CloudKit container?

Container. A CloudKit. Container object provides access to an app container, and through the app container, access to its databases. It also contains methods for authenticating and fetching users.


1 Answers

Add the following entry to your entitlements file and perform a clean build.

This allows you to run your application in Xcode with the CloudKit in the production mode.

Entry to add: com.apple.developer.icloud-container-environment with value: Production. Note: Will not work with simulator

enter image description here

like image 197
RawMean Avatar answered Oct 04 '22 11:10

RawMean