mobileprovision
文件被称为设备描述文件,在打包的过程中会用到它。
mobileprovision
文件是二进制的,无法直接看到其内容, 可以通过security命令查看:
security cms -D -i xx.mobileprovision
下面是一个运行结果示例:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AppIDName</key>
<string>XC Wildcard</string>
<key>ApplicationIdentifierPrefix</key>
<array>
<string>NWLTN55N9S</string>
</array>
<key>CreationDate</key>
<date>2017-08-30T02:50:24Z</date>
<key>Platform</key>
<array>
<string>iOS</string>
</array>
<key>DeveloperCertificates</key>
<array>
<data>................</data>
</array>
<key>Entitlements</key>
<dict>
<key>keychain-access-groups</key>
<array>
<string>NWLTN55N9S.*</string>
</array>
<key>get-task-allow</key>
<true/>
<key>application-identifier</key>
<string>NWLTN55N9S.*</string>
<key>com.apple.developer.team-identifier</key>
<string>NWLTN55N9S</string>
</dict>
<key>ExpirationDate</key>
<date>2018-08-30T02:50:24Z</date>
<key>Name</key>
<string>iOS Team Provisioning Profile: *</string>
<key>ProvisionedDevices</key>
<array>
<string>844d88bd6691f7d9f2f70e6d8d1e3b6ef1b6c9be</string>
</array>
<key>TeamIdentifier</key>
<array>
<string>NWLTN55N9S</string>
</array>
<key>TeamName</key>
<string>Fupin Liu</string>
<key>TimeToLive</key>
<integer>365</integer>
<key>UUID</key>
<string>d3957a16-8152-4018-989b-4bf4864d82c1</string>
<key>Version</key>
<integer>1</integer>
</dict>
</plist>
这个解析后的文件格式是一个plist文件格式, 下面是各个Key
对应的作用说明: