可以从命令行更新 iOS 配置文件吗?
我有一个构建脚本,将在 Mac mini 上作为构建服务器运行。它应该可以正常工作,但我仍然需要更新并手动获取最新的配置文件。有没有办法从命令行完成此操作?
I've got a build script that I will be running on a Mac mini as a build server. It should work just fine but I still need to renew and get the latest provisioning profile manually. Is there a way this can be done from the command-line?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我使用Automator来记录和创建一个更新配置文件的应用程序。
步骤如下(从“观看我做的事情”列表中复制):
然后将其保存到桌面,名称为 RefreshProvisionProfile.app(或其他位置)。
要从任何终端或构建脚本运行它,如下所示:
/Users/User_name/Desktop/RefreshProvisionProfile.app/Contents/MacOS/Application\ Stub RefreshProvisionProfile.app/
似乎对我有用。
以下是我们用来识别要随项目发送给 QA 的配置文件的一些代码:
对于 XCode 5.0.2,顺序如下:
I used the Automator to record and create an app that renews the provisioning profiles.
The steps are (copying from the Watch Me Do list):
Then save it to your desktop as RefreshProvisionProfile.app (or somewhere else).
To run it from any terminal or from a build script as follows:
/Users/User_name/Desktop/RefreshProvisionProfile.app/Contents/MacOS/Application\ Stub RefreshProvisionProfile.app/
Seems to work for me.
Here is some code we use to identify the profile we want to ship to QA with the project:
For XCode 5.0.2 the order is as follows:
不这么认为。很确定您必须通过门户网站执行此操作。
Don't think so. Pretty sure you have to do that via the Web Portal.