The Identity Used to Sign the Executable Is No Longer Valid

The identity used to sign the executable is no longer valid

Try restarting XCode. It worked for me.

(0xE8008018): The identity used to sign the executable is no longer valid

After hours of investigating, the shell script for signing the project was failing at some point, without reporting back to Xcode.

I noticed that in the DerivedData folder (found in /Users/yourUsername/Library/Developer/Xcode/DerivedData/) of Xcode there were two folders with the same name of my project ending with a different hash, for example:

ProjectName--dcakkvkdhqvxstehdiuzwbpsmdal
ProjectName--kurbctkdhqvxuytrwnczwbpsmdal

I closed Xcode, and made sure to delete both folders, somehow Xcode generated two different folders for the project at some point, restarting Xcode after the deletion of the folders fixed this.

The identity used to sign the executable is no longer valid (iOS 8+ / Xcode 7)

So I finally managed to make it work though I'm not exactly sure which of the following had to be done.

  1. I deleted my Apple ID and all the provisioning profiles.
  2. Then I added the same Apple ID and downloaded the provisioning profiles (Xcode > Preferences... > Accounts)

From what I had read on SO it should have worked here, but in my case it wasn't.

So what I did was:

  • going to Window > Devices
  • then right click on my device on the left hand corner
  • and click on Show provisioning profiles...
  • I then deleted all the provisioning profiles I had on my phone

After doing what I said above it worked.

Hope this can be helpful.

The identity used to sign the executable is no longer valid

Try restarting XCode. It worked for me.



Related Topics



Leave a reply



Submit