Executable was signed with invalid entitlements

GamePizzaGamePizza Member, PRO Posts: 227
Trying to deploy GSViewer on iPhone 5, get message "The executable was signed with invalid entitlements. The entitlements specified in your application's Code Signing Entitlements file do not match those specified in your provisioning profile. (0xE8008016)."

The provisioning profile is valid and appears in the Organizer. The Code Signing Identities appear to be set correctly in the Code Signing Entitlements.

Any ideas what could be wrong?

Comments

  • KillerPenguinStudiosKillerPenguinStudios Member Posts: 1,291
    Hey @GamePizza

    Make sure you have the most recent Xcode (currently 5.0) installed on your computer. Make sure that you have "Command Line Tools" in Xcode installed as well.

    Next, "Refresh" your Provisioning Profiles and Signing Identities. This is done by Selecting Xcode and going to 'Preferences-> Accounts (Make sure your Apple ID is added)-> View Details...'. On the bottom left hand side, select 'Refresh'. Once completed, you can move onto the below steps.

    If you have completed the first steps, please move on..

    In Keychain:

    In your 'System' Keychain- open your Apple WWDR certificate and ensure its its marked as "System Defaults" and not "Always Trust" under the "Trust" drop down. Do this for ALL certificates present in your 'System' and 'Login' keychain.

    Make sure you do not have duplicate Certificates in your 'Login' Keychain. Development and Distribution Certificates should be in the 'Login' Keychain.

    Ensure all Certificates in your 'Login' have a grey arrow that exposes a private key

    Make sure your 'Apple WWDR', 'Software Signing' and 'Apple Code Signing Certificate Authority' are the only certificates in your 'System' keychain. Please make sure your Developer and Distribution Certificates are not in your 'System' keychain.

    Finally, confirm that the bundle identifier used to generate the app is being signed with the appropriate Provisioning Profile. Example: Using a distribution provisioning profile and attempting to sign with a developer, wont work.

    To recap, In the 'Login' Keychain there should be your Distribution and Development Certificates without duplicates. The 'System' Keychain should have the following Certificates. All Certificates should 'Trust' the 'System Defaults'.
    'Apple WWDR'
    'Software Signing'
    'Apple Code Signing Certificate Authority'

    Let me know how this goes!
  • GamePizzaGamePizza Member, PRO Posts: 227
    Thanks for your reply!

    I stayed with my xCode 4.5 installation.

    My device may not have been added to the list of devices for the GS provisioning profile I created. I added the device and downloaded the profile again, deleting the old one. And it seems to work now.
Sign In or Register to comment.