DEV Community

iainrough
iainrough

Posted on

iOS Tips - This app cannot be installed because its integrity could not be verified

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]" -
Enter fullscreen mode Exit fullscreen mode

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>

Enter fullscreen mode Exit fullscreen mode

Check the Entitlements of a signed app

   codesign --display --entitlements :- com.company.appName.app
Enter fullscreen mode Exit fullscreen mode

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>

Enter fullscreen mode Exit fullscreen mode

Conclusion

Simple error and easy to spot if you have the tools.

References

ℹ️ Diagnosing Issues with Entitlements

Top comments (0)