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

fjlksahfob picture fjlksahfob · Oct 12, 2012 · Viewed 15k times · Source

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 build script I am using to change some stuff in there before building so I want to see what the final product is. I know that there used to be an Entitlements.plist that I could get off of the ipa but it doesn't seem to be there any longer. Is there any way to access the .entitlements file now?

Answer

Blitz picture Blitz · Apr 15, 2015

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"