Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

xcode

ios

I'm trying to debug my app on Xcode and I'm having the following error:

The identity used to sign the executable is no longer valid.

Please verify that your device’s clock is properly set, and that your signing certificate is not expired.

(0xE8008018).

enter image description here

Now I know there are many questions regarding this issue, and I have tried every possible way to solve it, what I have tried so far (didn't work):

  • Some suggested to restart Xcode.
  • Refreshing the account.
  • Deleting all the certificates from the keychain.
  • Revoking all the certificates from the member center.
  • Installing the certificates manually.
  • Checked my Devices clocks (obviously)
  • Removed Xcode (disparately) and re-installed it.
  • Checking my project Build config, and made sure that the developer account is selected.
  • Checked my account expiration date (it's renewed 5 days ago)
  • Checked if I have to accept some Conditions and Terms (none)
  • Disabled the devices I have in the Member profile
  • Tested on multiple iPhones (same result)
  • Checked out a git tag/branch which is stable (I thought the project might be corrupted also disparately)

My concern is that it might be a temporary issue from apple, or a bug in Xcode, although it was working hours ago on my iMac, when I switched to the MacBook Pro I had this issue (and I always do this with no problems at all).

Running:

  • OSX Yosemite 10.10.4 (14E46)
  • Xcode 6.4
like image 374
Hatem Alimam Avatar asked Jul 17 '15 21:07

Hatem Alimam


3 Answers

Trying to remove and re-add your apple id, it works for me.

  1. xcode: Preferences...
  2. Accounts
  3. Select your apple account
  4. Remove that (-)
  5. Add again your apple account (+)
  6. Run yor app!
like image 141
Sebastián Lara Avatar answered Nov 11 '22 05:11

Sebastián Lara


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.

like image 29
Hatem Alimam Avatar answered Nov 11 '22 05:11

Hatem Alimam


I have experienced the same situation.

But it was cleared by deleting and downloading again the provisioning profiles on my mac.

The location of the provisioning profiles is:

/Users/yourUsername/Library/MobileDevice/Provisioning Profiles/

like image 25
Yeong Hoon Cha Avatar answered Nov 11 '22 06:11

Yeong Hoon Cha