如何通过命令行为iOS开发安装开发人员证书/私钥和供应配置文件? [英] How to install developer certificate/private key and provisioning profile for iOS development via command line?

查看:148
本文介绍了如何通过命令行为iOS开发安装开发人员证书/私钥和供应配置文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为iOS应用程序项目配置自动构建服务器。
我做了大部分。现在,这是最后一轮。安全性。



开发人员证书/私钥和配置文件可以通过GUI轻松安装到Keychain中。但我想通过命令行来实现这一点,即使是配置过程自动化。 通过命令行导出/导入证书,私钥,配置配置文件。



任何建议都将非常感激。

解决方案

我发现了以下提示:
http://lists.apple.com/archives/apple-cdsa/2010/Mar/msg00021.html



命令是 security 。我正在阅读手册页。我会在试用后更新此答案:)

- (编辑) -



我们必须手动给总是允许访问Keychain中的证书/密钥一次。我不知道如何做到这一点没有GUI。



在为每个会话运行构建工具之前,请运行命令 security unlock-keychain 。我使用SSH,所以我必须为每个登录会话执行一次。


I'm configuring automated build server for iOS application project. I've done most of it. Now, it's the final round. The security.

Developer certificate/private key and provisioning profile can be easily installed into Keychain with GUI. But I want to do this via command line to automate even the configuring process. Exporting/importing certificates, private keys, provisioning profiles via command line.

Any recommendations will be very appreciated.

解决方案

I found hints from: http://lists.apple.com/archives/apple-cdsa/2010/Mar/msg00021.html

The command is security. I'm reading manual page. I'll update this answer later after trial :)

--(edit)--

First, we have to give 'Always Allow' access to the certificates/keys in the Keychain manually once. I don't know how to do this without GUI.

And run the command security unlock-keychain before running build tool for every session. I've used SSH, so I had to execute it once for every login sessions.

这篇关于如何通过命令行为iOS开发安装开发人员证书/私钥和供应配置文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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