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

心已入冬 提交于 2019-12-31 13:17:27

问题


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?


回答1:


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>




回答2:


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"


来源:https://stackoverflow.com/questions/12850309/is-there-a-way-to-view-your-apps-entitlements-file-from-your-apps-ipa-archiv

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!