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

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


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

  • Change the extension of the *.ipa file to *.zip .
  • Un-archive this zip file.
  • The folder contains a *.app file. Open its package contents by right clicking it.
  • Inside, you'll find an embedded.mobileprovision file.
  • EDIT- Since Xcode 6 doesn't show the provisioning profile, I'll extend the answer to still see the details:

  • Change the extension of the embedded.mobileprovision to embedded.txt or just open it with any text editor of choice.
  • 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 .
  • Hope it'll help!


    使用游牧人。

    $ 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                                                        |
    +-----------------------------+----------------------------------------------------------+
    

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

    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:

    unzip -l <ipafile>.ipa | grep mobileprovision
    
    链接地址: http://www.djcxy.com/p/64932.html

    上一篇: 如果您有dSYM,可以将.ipa文件进行反向设计吗?

    下一篇: 如何找出用于构建* .ipa文件的配置文件?