security cms -D -i /path/to/your.mobileprovision
similar with command : security cms -D -i /path/to/your.app/embedded.mobileprovision (your.app is the build app directory)
output somthing like these:
note: redFont part is the entitlements.
<?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>myapp sns HD</string>
<key>ApplicationIdentifierPrefix</key>
<array>
<string>my_team_code</string>
</array>
<key>CreationDate</key>
<date>2015-08-13T05:57:25Z</date>
<key>Platform</key>
<array>
<string>iOS</string>
</array>
<key>DeveloperCertificates</key>
<array>
<data>MIIFvjCCBKagAwIBAgIILjS4iSGzUk8wDQYJKoZIhvcNAQEF***mnjPwv/cS34vSQFFDstzG+CN+NQQ==</data>
</array>
<span style="color:#ff0000;"><key>Entitlements</key>
<dict>
<key>keychain-access-groups</key>
<array>
<string>my_team_code.*</string>
</array>
<key>get-task-allow</key>
<false/>
<key>application-identifier</key>
<string>my_team_code.com.myapp.hd</string>
<key>com.apple.developer.ubiquity-kvstore-identifier</key>
<string>my_team_code.*</string>
<key>com.apple.developer.icloud-services</key>
<string>*</string>
<key>com.apple.developer.icloud-container-environment</key>
<array>
<string>Development</string>
<string>Production</string>
</array>
<key>com.apple.developer.icloud-container-identifiers</key>
<array>
<string>iCloud.com.myapp.sns</string>
<string>iCloud.com.myapp.hd</string>
<string>iCloud.com.myapp.iphone.SharesnsEx</string>
</array>
<key>com.apple.developer.icloud-container-development-container-identifiers</key>
<array>
<string>iCloud.com.myapp.sns</string>
<string>iCloud.com.myapp.hd</string>
<string>iCloud.com.myapp.iphone.SharesnsEx</string>
</array>
<key>com.apple.developer.ubiquity-container-identifiers</key>
<array>
<string>iCloud.com.myapp.sns</string>
<string>iCloud.com.myapp.hd</string>
<string>iCloud.com.myapp.iphone.SharesnsEx</string>
</array>
<key>com.apple.security.application-groups</key>
<array>
<string>group.com.myapp</string>
</array>
<key>com.apple.developer.team-identifier</key>
<string>my_team_code</string>
<key>aps-environment</key>
<string>production</string>
</dict></span>
<key>ExpirationDate</key>
<date>2016-08-12T05:57:25Z</date>
<key>Name</key>
<string>com_myapp_hd_ent</string>
<key>ProvisionsAllDevices</key>
<true/>
<key>TeamIdentifier</key>
<array>
<string>my_team_code</string>
</array>
<key>TeamName</key>
<string>Beijing myapp Science & Technology Co., Ltd</string>
<key>TimeToLive</key>
<integer>365</integer>
<key>UUID</key>
<string>20385182-1630-4930-a741-c326cfce4ed4</string>
<key>Version</key>
<integer>1</integer>
</dict>
</plist>