使用Security命令行查看配置文件内容
- 进入到文件所在文件夹 $cd /path
- $security cms -D -i xx.moblieprovision
<?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 name</string>
<key>ApplicationIdentifierPrefix</key>
<array>
<string>NABY5B5X89</string>
</array>
<key>CreationDate</key>
<date>2017-07-14T07:51:24Z</date>
<key>Platform</key>
<array>
<string>iOS</string>
</array>
<key>DeveloperCertificates</key>
<array>
<data>MIIF1TCCBL2gAwIBAgIIfrQuT3Ae7HwwDQYJKoZIhvcNAQELBQAwgZYxCzAJBgNVBAYTAlVTMRMwEQYDVQQKDApBcHBsZSBJbmMuMSwwKgYDVQQLDCNBcHBsZSBXb3JsZHdpZGUgRGV2ZWxvcGVyIFJlbGF0aW9uczFEMEIGA1UEAww7QXBwbGUgV29ybGR3aWRlIERldmVsb3BlciBSZWxhdGlvbnMgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMTcwNzE0MDcxMTE5WhcNMTgwNzE0MDcxMTE5WjCByDEaMBgGCgmSJomT8ixkAQEMCk5BQlk1QjVYODkxVDBSBgNVBAMMS2lQaG9uZSBEaXN0cmlidXRpb246IFpob3VZSSBIZWJlaSBOZXR3b3JrIFRlY2hub2xvZ3kgQ28uLCBMdGQuIChOQUJZNUI1WDg5KTETMBEGA1UECwwKTkFCWTVCNVg4OTEyMDAGA1UECgwpWmhvdVlJIEhlYmVpIE5ldHdvcmsgVGVjaG5vbG9neSBDby4sIEx0ZC4xCzAJBgNVBAYTAlVTMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxUbc8DjT32QmTaoTqFCj11UVcihLpkccyOXobQxrsDNaD5/9ezb5L4w1hLgWiwdpXNgDvZf7N3zBabvq42ETxcFlwsQH1G3NJoA2hLSglIoDgNaYl3nQid9VWBJruGVhu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yxUzGdphkFiZA2ZCy3Pl8B1ohF2WYylXxd8s4+VNR8MvRom9OqxsSeQQLnXB7UHgiYoc83hc+pOB114AQ72I+O+RW0w5t0c3p+0H9P55VXpxhiJSaUWOjN0G2EGkW1t4CQ21+pHhaVU0GBk3Q1jLcNHK4Lkkij4XgAbWa2tO4p2SK/ucjiJlWTWf0vOQkLY760jxMJ4h1H1sD</data>
</array>
<key>Entitlements</key>
<dict>
<key>keychain-access-groups</key>
<array>
<string>-----------</string>
</array>
<key>get-task-allow</key>
<false/>
<key>application-identifier</key>
<string>NABY5B5X89.budleID</string>
<key>com.apple.developer.team-identifier</key>
<string>NABY5B5XXX89</string>
<key>aps-environment</key>
<string>production</string>
</dict>
<key>ExpirationDate</key>
<date>2018-07-14T07:11:19Z</date>
<key>Name</key>
<string>ADHOC</string>
<key>ProvisionedDevices</key>
<array>
<string>8aec65ac008398d8e3862a4204620e2b6a2f493b</string>
<string>cd4a76100452bd07c39a6ffad6846bc390ed78f2</string>
</array>
<key>TeamIdentifier</key>
<array>
<string>NACY5B4X89</string>
</array>
<key>TeamName</key>
<string>Apple Technology Co., Ltd.</string>
<key>TimeToLive</key>
<integer>364</integer>
<key>UUID</key>
<string>050d6afe-4f9c-3a36-873a-9248b0ea9922</string>
<key>Version</key>
<integer>1</integer>
</dict>
</plist
大致结构
开发者信息(文件创建时间,平台,APPID等)
DeveloperCertificates 这一项是一个列表,包含了可以为使用这个配置文件的应用签名的所有证书
-
Entitlements 授权信息
- 举例来说,如果你在 Xcode 中添加了 iCloud 键值对存储授权 (com.apple.developer.ubiquity-kvstore-identifier),但是没有更新,重新设置并下载新的配置文件,旧的配置文件规定你的应用并没有这一项授权。那么如果你的应用使用了这个功能,iOS 就会拒绝你的应用运行。这也是当你在开发者中心编辑了应用的授权,对应的配置文件会被标记为无效的原因。
如果你打开的是一个用于开发测试的证书,你会看到一项 ProvisionedDevices,在这一项里包含了所有可以用于测试的设备列表。因为配置文件需要被苹果签名,所以每次你添加了新的设备进去就要重新下载新的配置文件。
UDID