xcode 有没有办法从应用程序的 .ipa 存档中查看应用程序的 .entitlements 文件?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12850309/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 01:47:31  来源:igfitidea点击:

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

iphonexcodeios6ad-hoc-distributionarchiving

提问by fjlksahfob

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?

我认为创建 .ipa 时我的应用程序的 .entitlements 文件存在问题,因此我想检查权利文件的捆绑 ID。有一个相当复杂的构建脚本,我用来在构建之前更改其中的一些内容,所以我想看看最终产品是什么。我知道曾经有一个 Entitlements.plist 可以让我摆脱 ipa,但它似乎不再存在了。现在有什么方法可以访问 .entitlements 文件吗?

回答by Blitz

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

对于那些通过 Google 到达这里的人,Apple 在https://developer.apple.com/library/ios/qa/qa1798/_index.html上提供的信息要更新得多。特别是在解压 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"

回答by FluffulousChimp

Sure, unzip the .ipafile 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".

当然,解压缩.ipa将创建有效负载目录的文件。Payload 目录内是应用程序包。在 Finder 中右键单击应用程序包以“显示包内容”。

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

查找可以使用文本编辑器或 plist 编辑器打开的 embedding.mobileprovision 文件。寻找<key>Entitlements</key>