如何签署第三方提供的发布 iphone 二进制文件? [英] How can I sign a release iphone binary provided by a 3rd party?

查看:23
本文介绍了如何签署第三方提供的发布 iphone 二进制文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到了一个外包公司为我工作的公司开发的 iPhone 应用程序.我无权访问源代码,只能访问已编译的二进制文件.我希望能够使用我们的证书、配置信息等对其进行签名,以便我可以将其提交到应用商店.我该怎么做?我知道 codesign 的存在,但无法从手册页真正理解如何在 iPhone 上正确使用它.

I have received an iPhone application developed for the company I work for by an outsourcing company. I do not have access to the source, only a compiled binary. I want to be able to sign it using our certificate, provisioning info, etc so I can submit it to the app store. How do I go about doing this? I'm aware of the existence of the codesign but can't really grok how to use it properly for iPhone from the man page.

推荐答案

在创建并安装分发证书后,您可以像这样从终端进行代码签名:

After you have a distribution certificate created and installed, you can codesign from the Terminal like so:

cd <path to folder containing YourApp.app>

/usr/bin/codesign -f -s "iPhone Distribution: Your Company Name" --resource-rules=<full_path_to>/YourApp.app/ResourceRules.plist <full_path_to>/YourApp.app

这就是 Xcode 在签署应用程序时所做的.

This is what Xcode does when it signs an app.

这篇关于如何签署第三方提供的发布 iphone 二进制文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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