Is there a way to view your app's .entitlements file from your app's .ipa archive?

前端 未结 2 613
無奈伤痛
無奈伤痛 2021-02-04 09:12

I think there\'s an issue with my app\'s .entitlements file when a .ipa is created and so I want to check the Bundle ID of the entitlements file. There\'s a fairly complicated b

相关标签:
2条回答
  • 2021-02-04 09:45

    Sure, unzip the .ipa file which will create a Payload directory. Inside of the Payload directory is the application package. Right-click the app package in Finder to "Show Package Contents".

    Look for the embedded.mobileprovision file which you can open with a text editor or plist editor. Look for the <key>Entitlements</key>

    0 讨论(0)
  • 2021-02-04 09:54

    For those getting here via Google, the Information Apple provides at https://developer.apple.com/library/ios/qa/qa1798/_index.html is a lot more recent. Specifially, after unzipping the IPA:

    Display the entitlements in the app by running:

    codesign -d --entitlements :- "Payload/YourApp.app" 
    

    and display the provisioning profile by running:

    security -D -i "Payload/YourApp.app/embedded.mobileprovision"
    
    0 讨论(0)
提交回复
热议问题