我在网络上发现许多文章暗示您可以在文本编辑器中查看 .mobileprovision 文件内容。比如这个Urban Airship post :
When push notifications are enabled for an app, the aps-environment key will appear in the .mobileprovision file specifying the provisioning profile:
<key>Entitlements</key>
<dict>
<key>application-identifier</key>
...
然而,我拥有的 mobilprovision 文件(在过去几天内获得)包含 466 1/2 行,每行 8 组,每组 4 个十六进制数字,(例如 4851 3842 4176 2845 0a09 01a2 404d 4382
)。如何查看此类文件?
最佳答案
配置文件已编码。要解码它们并检查 XML,您可以通过命令行使用它:
security cms -D -i #{@profilePath}
其中 #{@profilePath}
是您的 .mobileprovision 文件的文件路径。
一个更完整的 Ruby 例子是:
require 'plist'
profile = `security cms -D -i #{@profilePath}`
xml = Plist::parse_xml(profile)
appID = xml['Entitlements']['application-identifier']
关于ios - Apple 是否更改了 .mobileprovision 文件格式,我如何查看当前格式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10988998/