Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode - The executable was signed with invalid entitlements only in RELEASE mode

This question is similar to The executable gets signed with invalid entitlements in Xcode. But the difference is that for me it is working for debug mode:

enter image description here

but doesn't work for release mode:

enter image description here

For release i got an exception:

enter image description here

However everything is fine for DEBUG: How to make it working for both: release and debug?

like image 931
Bartłomiej Semańczyk Avatar asked Nov 01 '22 02:11

Bartłomiej Semańczyk


1 Answers

Invariably this error is caused by a mismatch between your provisioning profile and your distribution certificate. Typically, Apple allows an organization to have two distribution certificates and when a provisioning profile is created - it is associated with one or the other. In order to correctly sign an ipa, the distribution certificate AND private key on the Mac where the signing is occurring must match that which was selected when the provisioning profile was created.

To check which distribution certificate you have access your keychain

Go to Xcode's Organizer and click on all the Profiles, check if they are valid. Xcode throw up warning text if say, something is missing in Keychain.

like image 169
Nookie_IN Avatar answered Nov 15 '22 05:11

Nookie_IN