用于签署iPhone应用程序的供应配置文件的名称? [英] Name of Provisioning Profile used to sign an iPhone app?

查看:155
本文介绍了用于签署iPhone应用程序的供应配置文件的名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编写了一个使用 xcodebuild 的脚本来生成iPhone应用程序的AdHoc版本。

I wrote a script that uses xcodebuild to generate an AdHoc build of an iPhone application.

我会喜欢编辑此脚本以输出用于签署构建的供应配置文件的名称。

这样我就可以在自动生成的zip中包含供应配置文件。这样,我就可以自动将存档发送给AdHoc测试人员,并确保他们拥有正确的配置文件来安装应用程序。

I would like to edit this script to output the name of the Provisioning Profile used to sign the build.
This would allow me to include the Provisioning Profile in the zip that is automatically generated. This way, I could automatically send the archive to the AdHoc testers and be sure that they have the right Provisioning Profile to install the app.

有没有办法从构建和签名的应用程序中提取用于签署应用程序的供应配置文件名称或文件


  • 来自Xcode项目的
  • (我不想手动解析project.pbxproj文件,因为此解决方案可能在下一个Xcode更新中中断)

  • 任何其他可编写脚本的方式

  • from the builded and signed application
  • from the Xcode project (I don't want to manually parse the project.pbxproj file, as this solution might break in the next Xcode update)
  • any other way that is scriptable

Unforgiven 建议使用命令 security 获取用于签署应用程序的证书的名称。获得此信息后,有没有办法找到配置文件的名称?

Unforgiven suggested to use the command security to get the name of the certificate used to sign the app. Once you have this information, is there any way to then find the name of the Provisioning Profile?

这是我的意思试过:

遗憾的是,构建过程中xcodebuild的输出不包含这些信息。在CodeSign步骤中,有一行:

Sadly, the output of xcodebuild during the build does not contain this information. During the CodeSign step, there is the line:

/usr/bin/codesign -f -s "iPhone Distribution: My name" ...

但我无法将其与证书相匹配。

but I can't match this with a certificate.

我研究过使用的代码签名,以及命令

I looked into using codesign, and the command

/usr/bin/codesign -d -vvv --entitlements - -r - /Users/lv/Desktop/TicTacBoo.app/TicTacBoo

看起来很有前途,但它没有给我提供我需要的信息。

我在xcodebuild中找不到任何有用的选项。

looked promising, but it doesn't give me the information I need.
I haven't found any useful option in xcodebuild either.

推荐答案

配置文件已在应用程序中。您的zip文件中不需要另一个副本(除非您的测试人员不了解如何在应用程序内部使用该副本。)

The provisioning profile is already in the application. You don't need another copy in your zip file (unless your testers do not understand how to use the copy inside of the application.)

它名为 YourApplication.app/embedded.mobileprovision

这不能回答你的问题,因为原始文件名已丢失,但似乎确实如此解决你的更大问题。

This doesn't answer your question because the original filename is lost, however it does seem to solve your bigger problem.

这篇关于用于签署iPhone应用程序的供应配置文件的名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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