ios 如何找出用于构建 *.ipa 文件的配置文件?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10222946/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 17:56:56  来源:igfitidea点击:

How to find out what profile was used for building *.ipa file?

iphoneiosprovisioning-profile

提问by Centurion

Is it possible and how to grab that information about profile just from existing *.ipa file?

是否有可能以及如何仅从现有的 *.ipa 文件中获取有关配置文件的信息?

回答by tipycalFlow

I can give you a direction in this, not sure if it'll actually help:

我可以给你一个方向,不确定它是否真的有帮助:

  1. Change the extension of the *.ipafile to *.zip.
  2. Un-archive this zip file.
  3. The folder contains a *.appfile. Open its package contents by right clicking it.
  4. Inside, you'll find an embedded.mobileprovisionfile.
  1. *.ipa文件的扩展名更改为*.zip.
  2. 取消存档此 zip 文件。
  3. 该文件夹包含一个*.app文件。右键单击它打开它的包内容。
  4. 在里面,你会找到一个embedded.mobileprovision文件。

EDIT-Since Xcode 6 doesn't show the provisioning profile, I'll extend the answer to still see the details:

编辑 -由于 Xcode 6 不显示配置文件,我将扩展答案以仍然看到详细信息:

  1. Change the extension of the embedded.mobileprovisionto embedded.txtorjust open it with any text editor of choice.
  2. Inside, you'll find some binary data and a hash that contains the profile's details like Entitlements, CreationDate, ExpirationDate, Name, etc which will be sufficient to conclusively lead you to the provisioning profile used to create the .ipa.
  1. 将 的扩展名更改embedded.mobileprovisionembedded.txt使用任何选择的文本编辑器打开它。
  2. 在里面,你会发现一些二进制数据,包含如个人资料的详细信息的哈希EntitlementsCreationDateExpirationDateName,等,这将足以确凿地带领你用来创建供应配置文件.ipa

Hope it'll help!

希望它会有所帮助!

回答by RyanM

Use Nomad.

使用游牧民族

$ ipa info /path/to/app.ipa

+-----------------------------+----------------------------------------------------------+
| ApplicationIdentifierPrefix | DJ73OPSO53                                               |
| CreationDate                | 2014-03-26T02:53:00+00:00                                |
| Entitlements                | application-identifier: DJ73OPSO53.com.nomad.shenzhen    |
|                             | aps-environment: production                              |
|                             | get-task-allow: false                                    |
|                             | keychain-access-groups: ["DJ73OPSO53.*"]                 |
| CreationDate                | 2017-03-26T02:53:00+00:00                                |
| Name                        | Shenzhen                                                 |
| TeamIdentifier              | S6ZYP4L6TY                                               |
| TimeToLive                  | 172                                                      |
| UUID                        | P7602NR3-4D34-441N-B6C9-R79395PN1OO3                     |
| Version                     | 1                                                        |
+-----------------------------+----------------------------------------------------------+

回答by Warren

Something like the following dumps an xml version of the provisioning profile:

类似于以下内容的内容会转储配置文件的 xml 版本:

unzip -p <ipafile>.ipa Payload/<myapp>.app/embedded.mobileprovision | security cms -D

Replace <ipafile>and <myapp>accordingly. If you don't know what <myapp>should be, try:

更换<ipafile><myapp>相应地。如果您不知道<myapp>应该是什么,请尝试:

unzip -l <ipafile>.ipa | grep mobileprovision

回答by Jayprakash Dubey

Below are step for getting profile details from an IPA file :

以下是从 IPA 文件获取配置文件详细信息的步骤:

  1. Change the extension of IPAto ZIP. This will prompt an alert whether to keep .ipa or use.zip. Go with Use .zipoption
  1. 将扩展名更改IPAZIP。这将提示是否保留 .ipa 或 use.zip。与去Use .zip选择

Screenshot 1

截图 1

Screenshot 1.5

截图 1.5

  1. This will convert IPAto ZIPfile
  1. 这将转换IPAZIP文件

Screenshot 2

截图 2

  1. Extract the ZIP fileby double click on it
  1. 通过双击解压缩 ZIP 文件

Screenshot 3

截图 3

  1. This will create a folder with contents : Payload, SwiftSupport and Symbols
  1. 这将创建一个包含以下内容的文件夹:Payload、SwiftSupport 和 Symbols

Screenshot 4

截图 4

  1. Goto Payload-> App file
  1. 转到有效负载->应用程序文件

Screenshot 5

截图 5

  1. Right click and ‘Show Package Contents' for App file
  1. 右键单击并为应用程序文件“显示包内容

Screenshot 6

截图 6

  1. This will show detailed content such as codeSign, localised file, framework, provision filesetc of your app file
  1. 这将显示您的应用程序文件的详细内容,例如codeSign、本地化文件、框架、配置文件

Screenshot 7

截图 7

  1. You can see provision profile details in embedded.mobileprovision. This file can be read only in txt file format. So add an extension .txtto file
  1. 您可以在embedding.mobileprovision 中查看配置文件详细信息。此文件只能以 txt 文件格式读取。所以在文件中添加一个扩展名 .txt

Screenshot 8

截图 8

  1. Now open this file using textEdit. Now thoroughly go through this file you can see provision profiles for the IPA.
  1. 现在使用textEdit打开此文件。现在彻底浏览此文件,您可以看到 IPA 的配置文件

Screenshot 9

截图 9

回答by iOS Developer

Go to your Xcode organizer and click on the archives.You can see the list of archives you have made. Clicking on it will show you the details like date of creation, identifier etc. You can find the profile you created for this by matching this identifier you got.

转到您的 Xcode 管理器并单击存档。您可以看到您制作的存档列表。单击它会显示创建日期、标识符等详细信息。您可以通过匹配您获得的此标识符来找到为此创建的配置文件。