I tried to run the program on my device and I got that error The identity used to sign the executable is no longer valid
. I have tried all discussions provided in this link. All didn't work for me. I deleted all developer certificates and get new certificate from Apple and put it into the keychain. Then I made new development provisioning profile as Xcode iOS Wildcard App ID
(to be generic). The status is active at Apple's developer site. So I put it into provisioning profile. I choose the correct certificate and profile at Code Signing from Build Phases at Xcode. I did all what I can think of, but that error never disappear. My Xcode version is 6.4 and my iOS is 8.4, all latest versions. What could be wrong?
Thanks
-
Is your team selected? General -> Identity -> Team – Munahil Jul 30 '15 at 07:23
-
Where to select? Yes team is selected. – batuman Jul 30 '15 at 07:24
-
General -> Identity -> Team is selected. But can't find Targets. Where is it? – batuman Jul 30 '15 at 07:28
-
You must have selected the Your app's target to see "General -> Identity -> Team " – Munahil Jul 30 '15 at 07:30
-
Yes this is the one with my Apple ID right. That is correct. i have added correct Account using my Apple ID – batuman Jul 30 '15 at 07:33
-
Let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/84649/discussion-between-batuman-and-munahil). – batuman Jul 30 '15 at 07:33
-
I found out that my certificate is not valid yet. What does it mean? I checked in the KeyChain Access – batuman Jul 30 '15 at 09:36
-
May be it has expired – Munahil Jul 30 '15 at 09:43
-
Are you creating the certificate following all steps? – Munahil Jul 30 '15 at 09:44
5 Answers
Check device UDID is correctly added and also check if device is added in provision profile or not

- 101
- 6
-
i started from scratch. Certificates is newly created. Identifier is new and make it using my app bundle id. Device also made sure my UDID (just different in Capital and small letter, i think no matter). Provision profile is produced by Xcode, so now new profile has my app bundle name, so i am sure that is my new profile. Even like that i still have this error The identity used to sign the executable is no longer valid at Xcode. – batuman Jul 30 '15 at 09:16
-
I found out that my certificate is not valid yet. What does it mean? I checked in the KeyChain Access – batuman Jul 30 '15 at 09:34
-
Have you checked code signing identify. Setting other invalid identity may also give you problem. – Vinod Sutar Jul 30 '15 at 09:38
-
i make sure that i have only one provision profile and set it. so I have sure they are valid – batuman Jul 30 '15 at 09:42
-
-
All what they post above are correct. The problem sometimes depends on some small issues individually. For me how I solved is (1)I started from scratch. All certificates, app id , provisioning profile etc everything I made new in the portal. In the step making provisioning profile, profile should link to certificate and your device. (2)Then need to check the development certificate is valid. Sometimes, the certificate is not valid immediately. For that, I reset the system clock and timezone at both device and Mac pc. I am not sure because of resetting the clocks at both devices or not, when I reboot the systems the certificate became valid. Then it works afterwards.

- 7,066
- 26
- 107
- 229
I went to the portal, deleted all of my certs (no live apps currently) and used the 'create' btn from the accounts menu:
Preferrences | View Details | Action => 'Reset'

- 410
- 4
- 13
Remove your apple id from Xcode preference and add it back again. Clean, rebuild and make sure coding signing is correct in project settings. That works for me.

- 505
- 4
- 12
- 27
I have solved the same problem. Just from "https://developer.apple.com/account/ios/profile/production/create" re-created the new Provisioning Profiles. Then download and install the new Provisioning Profiles of (Development and Distribution).

- 1,588
- 18
- 21