Ran into the following error today
⚠️ This app cannot be installed because its integrity could not be verified
Found the following commands helpful in debugging it.
Check Entitlements for a Provisioning profile on iOS
   security cms -D -i Profile.mobileprovision | xmllint --xpath "/plist/dict/key[text()='Entitlements']/following-sibling::dict[position()=1]" -
output
<dict>
    <key>com.apple.developer.associated-domains</key>
    <string>*</string>
    <key>application-identifier</key>
    <string>#######.com.company.appName</string>
    <key>keychain-access-groups</key>
    <array>
        <string>#######.*</string>
        <string>com.apple.token</string>
    </array>
    <key>get-task-allow</key>
    <true/>
    <key>com.apple.developer.team-identifier</key>
    <string>#######</string>
</dict>
Check the Entitlements of a signed app
   codesign --display --entitlements :- com.company.appName.app
output after formatting
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "https://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
    <dict>
        <key>Associated Domain</key>
        <array>
            <string>applinks:######?mode=developer</string>
        </array>
        <key>application-identifier</key>
        <string>######.com.company.appName.app</string>
        <key>com.apple.developer.team-identifier</key>
        <string>######</string>
        <key>get-task-allow</key>
        <true/>
    </dict>
</plist>
Conclusion
Simple error and easy to spot if you have the tools.
 

 
    
Top comments (0)