如何从配置文件中获取代码签名身份的名称?
How do I get the name of the code signing identity from a provisioning profile?
我有一些配置文件,例如
./profiles/first.mobileprovision
./profiles/second.mobileprovision
./profiles/third.mobileprovision
我想知道每个人的代码签名身份。是否有可以打印的命令(以 "iPhone Distribution: Developer Name (ABCDE12345)" 等标准格式)?
您可以使用...以可读形式转储配置文件...
security cms -D -i [filename]
不过,我不确定您要查找的信息是否以您想要的形式存在。如果我 grep "key" 的输出,我会得到以下列表...
<key>AppIDName</key>
<key>ApplicationIdentifierPrefix</key>
<key>CreationDate</key>
<key>DeveloperCertificates</key>
<key>Entitlements</key>
<key>application-identifier</key>
<key>get-task-allow</key>
<key>keychain-access-groups</key>
<key>ExpirationDate</key>
<key>Name</key>
<key>ProvisionedDevices</key>
<key>TeamIdentifier</key>
<key>TeamName</key>
<key>TimeToLive</key>
<key>UUID</key>
<key>Version</key>
...但这可能与我选择的配置文件类型有关。
我有一些配置文件,例如
./profiles/first.mobileprovision
./profiles/second.mobileprovision
./profiles/third.mobileprovision
我想知道每个人的代码签名身份。是否有可以打印的命令(以 "iPhone Distribution: Developer Name (ABCDE12345)" 等标准格式)?
您可以使用...以可读形式转储配置文件...
security cms -D -i [filename]
不过,我不确定您要查找的信息是否以您想要的形式存在。如果我 grep "key" 的输出,我会得到以下列表...
<key>AppIDName</key>
<key>ApplicationIdentifierPrefix</key>
<key>CreationDate</key>
<key>DeveloperCertificates</key>
<key>Entitlements</key>
<key>application-identifier</key>
<key>get-task-allow</key>
<key>keychain-access-groups</key>
<key>ExpirationDate</key>
<key>Name</key>
<key>ProvisionedDevices</key>
<key>TeamIdentifier</key>
<key>TeamName</key>
<key>TimeToLive</key>
<key>UUID</key>
<key>Version</key>
...但这可能与我选择的配置文件类型有关。