如何知道用什么配置文件/签名证书来签署.ipa? [英] How to tell what profile/signing certificate was used to sign .ipa?

查看:349
本文介绍了如何知道用什么配置文件/签名证书来签署.ipa?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一堆.ipa文件,我已经用脚本辞职了。

I have a bunch of .ipa files and I've used a script to resign them.

那么如何检查配置文件/签名证书以符合他们正在使用正确的信息?

So how can check the provisioning profile/signing certificate to conform they are using the correct information?

理想情况下,我想要能够获取任何.ipa文件,并告诉使用哪个配置文件/签名证书来签名。

Ideally, I'd like to be able to take any .ipa file and tell which provisioning profile/signing certificate was used to sign it.

背景:我们的企业分发证书即将过期,我想重新签署我们的邮件。这是一个简单的采取我们所做的和存档在Xcode中的所有东西,但对于第三方供应商的可分发性,我不能这样做。我想避免要求重新签名的.ipa文件,因为新的.ipa 可能包含未知的更改并引入问题,他们可能会收取费用...但我更担心第一个问题。

Backstory: Our enterprise distribution certificate is expiring and I want to re-sign our stuff. It's a simple take for all the stuff we've made and archived in Xcode, but for 3rd party vendor made distributables I can't do that. I want to avoid asking for a re-signed .ipa file because a new .ipa might include unknown changes and introduce issues and they'd probably charge us too... but I'm more worried about the first issue.

由于我们的旧的和新的分发证书仍然有效(你得到一个6个月的重叠),我需要能够确认新的使用否则

Since both our old and new distribution certificates are still valid (you get a 6month overlap) I need to be able to confirm the new one is used otherwise I'd look really silly when the old one expires and the "resigning" script didn't actually do the job.

推荐答案


security cms -D -i(path_to_your_provisioning_profile)

security cms -D -i (path_to_your_provisioning_profile)

请参阅命令输出的UUID部分,如:

See the UUID section of the command output like:

< ; key> UUID< / key>
< string> A008C022-7B82-4E40-8B37-172763E1E3CC< / string>

Xcode会将在.app包中签名应用程序。要找到它,将.ipa重命名为.zip,使用Finder解压缩,在/ Payload中找到.app文件。 显示包内容在.app文件,并找到名为 embedded.mobileprovision 的配置配置文件。

Xcode inserts the provisioning profile used to sign the application within the .app bundle. To find it, rename your .ipa to .zip, uncompress it with Finder, find the .app file in /Payload. "Show Package Contents" on the .app file and find the provisioning profile with the name embedded.mobileprovision.

使用上述命令转储其权利,并将其与您在Xcode Organizer>设备选项卡>供应配置文件部分中的库下的配置文件中找到的UUID进行比较。您可以使用在Finder中显示来显示它们在磁盘上的位置。

Dump its entitlements using the above command and compare that with the UUID found within your profiles in your Xcode Organizer > Devices tab > Provisioning Profile section under "Library". You can use "Show in Finder" on those to reveal their location on disk.

这篇关于如何知道用什么配置文件/签名证书来签署.ipa?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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