Pregunta

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?

¿Fue útil?

Solución

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>

Otros consejos

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"
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top