我可以在一台计算机上编译 iPhone 应用程序并在另一台计算机上签名吗?
假设我的客户不希望我拥有他的 iPhone 分发证书,有没有办法可以将编译后的应用程序发送给他并让他调整所有应用程序 ID、配置等参数,然后签名并提交?我该怎么做?
Suppose my client doesn't want me to own his iPhone Distribution Certificate, is there a way I can send him the compiled app and let him adjust all App Id, Provisioning etc parameters, then sign and submit it? How do I do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查看 XCode 构建结果窗口中的 CodeSign 步骤(单击右侧的“文本行”公开图标以查看 XCode 使用的实际命令)。
您将看到 CodeSign 步骤使用命令行工具 (/usr/bin/codesign),如下所示:
它使用“-s”选项指定的签名标识对“build”目录中的已编译应用程序进行签名在命令行上。因此,您没有理由不能将“build”目录移动到另一台计算机,并从命令行使用
codesign
使用所需的密钥对其进行签名。Look at the CodeSign step in the XCode build results window (click on the "lines of text" disclosure icon on the right to see the actual commands that XCode uses).
You'll see that the CodeSign step is using a command-line tool (/usr/bin/codesign) something like this:
It's signing the compiled application in the "build" directory using the signing identity specified by the "-s" option on the command line. So, there's no reason you couldn't move your "build" directory to another machine and sign it with the desired key using
codesign
from the command line.到目前为止,证明二进制文件的唯一方法是使用 Dist 构建它。添加到编译源代码的机器的证书。
您可以将证书导出为 .p12 文件并将其重新导入到另一台计算机中,这两个过程都必须使用Keychain Access实用程序来完成。
你可以尝试用终端调用做你想做的事情,但我怀疑你是否可以对已经编译好的iPhone应用程序进行签名。
The only way, since now documented, to certificate the binary is building it with a Dist. Certificate added to the machine that compile the source code.
You can export the certificate as .p12 file and re-import it in another machine, both procedure have to be done with Keychain Access utility.
You can try to do what you want to do with terminal calls, but I doubt that you can sign an iPhone app that has been compiled.