DEV Community

iainrough
iainrough

Posted on

3

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

Sentry mobile image

Mobile Vitals: A first step to Faster Apps

Slow startup times, UI hangs, and frozen frames frustrate users—but they’re also fixable. Mobile Vitals help you measure and understand these performance issues so you can optimize your app’s speed and responsiveness. Learn how to use them to reduce friction and improve user experience.

Read the guide →

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

AWS Security LIVE!

Hosted by security experts, AWS Security LIVE! showcases AWS Partners tackling real-world security challenges. Join live and get your security questions answered.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️