Running iOS app on MacOS error: This app cannot be installed because its integrity could not be verified.

The attached file bellow contains the full error

I clone this repo to my mac, change team id and group, and run it in Xcode: https://github.com/protonpass/ios-pass

There's no issue when I ran it with the Debug configuration, but when I go to Product > Scheme > Edit Scheme and change the iOS target build configuration to Release then I got that error above.

I have tried Archive and export the ipa, verify that the provisioning profile contains my Mac UDID, but when double clicking the ipa to install, I also got the error This app cannot be installed because its integrity could not be verified.

Answered by DTS Engineer in 850993022

For iOS code signing two of the most common problems that seem to show up occasionally are invalid cached provisioning profiles and invalid certificates. Here's how to check for those ~

Xcode stores provisioning profiles in the folder ~/Library/MobileDevice/Provisioning Profiles (or ~/Library/Developer/Xcode/UserData/Provisioning Profiles in Xcode 16 and later) on your machine. Try moving files out of there to a temporary location.

Search for “Development” or “Distribution“ certificates in the Keychain Access app (in /Applications/Utilities). Delete any duplicate or invalid certificates that you find (When deleting duplicate certificates, keep the certificate with the most recent expiration date).

After doing either of the above, try a clean build.

If that doesn't help, consider opening a support incident so I can take a look at the settings on your machine. https://developer.apple.com/support/technical/

For iOS code signing two of the most common problems that seem to show up occasionally are invalid cached provisioning profiles and invalid certificates. Here's how to check for those ~

Xcode stores provisioning profiles in the folder ~/Library/MobileDevice/Provisioning Profiles (or ~/Library/Developer/Xcode/UserData/Provisioning Profiles in Xcode 16 and later) on your machine. Try moving files out of there to a temporary location.

Search for “Development” or “Distribution“ certificates in the Keychain Access app (in /Applications/Utilities). Delete any duplicate or invalid certificates that you find (When deleting duplicate certificates, keep the certificate with the most recent expiration date).

After doing either of the above, try a clean build.

If that doesn't help, consider opening a support incident so I can take a look at the settings on your machine. https://developer.apple.com/support/technical/

Running iOS app on MacOS error: This app cannot be installed because its integrity could not be verified.
 
 
Q