The identity used to sign the executable is no longer valid
This may happen when your certificate expire in your Key Chain.
EDIT : I'd now recommand cert and sigh to generate your certificates and provisionning profiles. These are two commands part of the fastlane tools from KrauseFx.
Using cert & sigh:
- Open a terminal and type
cert
- Answer the prompted questions to sect your user, password, team, app, etc.
- Open a terminal and type
sigh
- Answer the prompted questions to sect your user, password, team, app, etc.
- Select the right profile in Code Signing Identity (iPhone Developer)
Conventional way:
- Just go to the new provisioning portal : Certificates, Identifier, Profiles
- Login with your developer account.
- Go to Certificates and click the Plus button.
- Then select iOS Apps Development and click Continue.
- Follow the whole process and download the newly generated certificate.
- Download it and put it in your keychain.
- Update your profiles from XCode Organizer devices window
- Select the right profile in Code Signing Identity (iPhone Developer)
Neither restarting Xcode nor restarting my Mac helped.
Solution within Xcode:
- In Xcode, go to Preferences --> Accounts --> View Details
Press the + symbol and select iOS Development- Press the refresh button in the lower left corner (called
Download all
in Xcode 7)
PS:
- Sometimes it may also help to delete invalid provisioning profiles: right-click -> move to trash
- I saw this error exactly one year after signing up as an Apple developer.
Try restarting XCode. It worked for me.