我的iOS和Mac应用程序已经发布到App Store,我的所有用户(包括我自己)都在使用CloudKit生产数据库。我的问题是,有没有办法针对我的开发构建定位生产环境?似乎没有办法将生产环境定位到Mac App Store之外,而对于iOS,只有Ad Hoc分发可以定位到生产环境。
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.
推荐答案将以下条目添加到权利文件并执行干净构建。
Add the following entry to your entitlements file and perform a clean build.
这允许您在生产模式下使用cloudKit在Xcode中运行您的应用程序。
This allows you to run your application in Xcode with the cloudKit in the production mode.
要添加的条目: com.apple.developer.icloud-container-environment
更多推荐
在开发过程中使用生产CloudKit?
发布评论