Search code examples
iosxcode

Invalid code signature due to inadequate entitlements


I am trying to run an app on my physical device, it starts to build onto my device then crashes due to an 'invalid code signature, inadequate entitlements or its profile has not been explicitly trusted by the user.'

I have updated my iPhone and Xcode to the latest release, tried to clean the build and edit run scheme build configuration to 'Release' and tried to set my executable to 'Ask On Launch'. I searched for a Iphone Developer file on keychain and could not seem to find one but i am not sure what i am supposed to do.

Can anyone help?


Solution

  • The problem is that the developer is not trusted with the device. If you manually try to run the apps on the device, you will see an Untrusted Developer message.

    To solve this issue on the device, go to Settings > General > VPN and Device Management in newer iOS versions and Settings > General > Profiles or Settings > General > Device Management in older iOS versions (depending on the device type and the iOS version).

    There, trust the developer and allow the apps to run.