CloudKit:将容器环境从开发切换到生产 [英] CloudKit: switch container environment from Development to Production

查看:227
本文介绍了CloudKit:将容器环境从开发切换到生产的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个测试工具来验证CloudKit中的内容,但我希望能够选择容器的环境。

I'm building a test tool to verify content in CloudKit, but I want to be able to select the container's environment.

在iOS上,您可以选择导出应用程序进行临时测试时使用开发或生产环境,但是在OS X上没有该选项。它始终指向开发环境。

On iOS, you can select either the "Development" or the "Production" environment when you export your app for ad hoc testing, but you don't have that option on OS X. It always points to the "Development" environment.

任何人都知道,是否存在以编程方式在OS X或iOS上设置或选择要使用的容器环境的方法?

Anyone knows, if there is a programmatically way to set or select what container environment you want to work with, either on OS X or iOS?

推荐答案

在权利文件中,添加 com.apple.developer.icloud-container-environment 行,然后您可以切换在开发生产之间的来回价值。

In the entitlements file, add in the row of com.apple.developer.icloud-container-environment and you can switch the value of that back and forth between Development and Production.

这篇关于CloudKit:将容器环境从开发切换到生产的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆