본문 바로가기
모바일개발(Mobile Dev)/IOS개발(ObjectC)

The identity used to sign the executable is no longer valid at Xcode

by 테크한스 2015. 12. 30.
반응형




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

shareimprove this question
   
Is your team selected? General -> Identity -> Team – Munahil Jul 30 at 7:23 
   
Where to select? Yes team is selected. – batuman Jul 30 at 7:24 
   
Under "Targets" – Munahil Jul 30 at 7:25
   
General -> Identity -> Team is selected. But can't find Targets. Where is it? – batuman Jul 30 at 7:28
   
You must have selected the Your app's target to see "General -> Identity -> Team " – Munahil Jul 30 at 7:30

Check device UDID is correctly added and also check if device is added in provision profile or not

shareimprove this answer
   
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. – batumanJul 30 at 9:16
   
I found out that my certificate is not valid yet. What does it mean? I checked in the KeyChain Access – batuman Jul 30 at 9:34
   
Have you checked code signing identify. Setting other invalid identity may also give you problem. – Vinod Sutar Jul 30 at 9:38 
   
i make sure that i have only one provision profile and set it. so I have sure they are valid – batuman Jul 30 at 9:42
   
Check in both Project and Target of Xcode properties. – Vinod Sutar Jul 30 at 9:56

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.

shareimprove this answer

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'

enter image description here

shareimprove this answer

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.


반응형