How to fix “The identity used to sign the executable is no longer valid” error in Xcode

Screen Shot 2014-07-28 at 22.17.57It happens to all of us: your Apple Developer Membership is up, you renew it for $99 per year and you think you can get back to work. But no. The friendly folks over there made sure that nothing lasts forever – including your Provisioning Profiles.

The above error is easy to fix and only involves 57 steps per app. The abridged version:

  • head over to the Apple Member Center
  • find the Provisioning Profiles section
  • click the ones saying “invalid” or “expired”
  • edit and regenerate them
  • back in Xcode, refresh your profiles

The principle has been the same for a while, but every year the position of those items changes a bit. Here are some screenshots for the few seconds that remain in July 2014. It’ll probably be all outdated as soon as I hit publish. But until then, here goes:

Head over to and hit Member Center at the top right. Find something like Certificates, Identifiers and Profiles:

Screen Shot 2014-07-28 at 22.31.08

It’s a link that takes you to a section similar to this:

Screen Shot 2014-07-28 at 22.32.13

Select Provisioning Profiles (under iOS or Mac Apps, depending on your app) and you’ll see a long list of all profiles you’ve ever created. Pay attention to anything that’s not green in the left hand column, indicating expired or invalid profiles:

Screen Shot 2014-07-28 at 22.21.02

Find the profile in question and hit Edit. For Development Provisioning Profiles, you’ll find that your Development Certificate is no longer selected. Simply select it, add (or remove) any devices for this profile, then click Generate at the bottom. The next screen will offer you to download said profile – but since we’re using Xcode 5 or 6 we can ignore this step.

Screen Shot 2014-07-28 at 22.21.40

Distribution Profiles behave much the same: your Distribution Profile is deselected. Simply select it and hit generate. Again ignore the generous download offer and select Done instead.

All those little red and yellow symbols should look green and calm like this:

Screen Shot 2014-07-28 at 22.22.27

I know what you’re thinking: “Hey, I’ve got 30+ profiles sitting there – isn’t there a way to renew all of them in one fair swoop?” – Of course there isn’t, don’t be ridiculous!

Back in Xcode

Now that the profiles are fixed, let’s tell Xcode about them. Head over to

Xcode – Preferences – Accounts – select the account in question – select View Details.

On the bottom left corner of that window you’ll see something like a refresh icon. Click that and Xcode will communicate with the Member Center and pull in those new profiles.

When Xcode has finished, hit “done” to close that window and head over to your target, select Build Settings and find the Code Signing section (you can search for it if that list is a little long and confusing for your taste).

Reselect your provisioning profile and – in theory – Xcode should now deploy your app correctly.

Notice that I said “in theory” – because sometimes this doesn’t work. In which case, you can try the following options:

  • Build – Clean
  • restart Xcode
  • close your project, then restart Xcode
  • remove the app from your device, restart Xcode and re-deploy
  • find a different hobby because profiles take all the fun out of developing with Xcode

Idea for a bumper sticker: Honk if you hate Provisioning Profiles!

About Jay Versluis

Jay is a medical miracle known as Super Survivor. He runs two YouTube channels, five websites and several podcast feeds. To see what else he's up to, and to support him on his mission to make the world a better place, check out his Patreon Campaign.

12 thoughts on “How to fix “The identity used to sign the executable is no longer valid” error in Xcode

  1. Awesome! Thanks. Just what I needed. Works in xCode 6.0.1 and I didn’t have to go to the code signing section and do anything.

  2. I recently started developing for iOS and kept getting annoying with all the “developer centers” “itunes” “itunesconnects” “xcodes” and other thousands of anti-intuitive tools with thousands of hidden options, where its nearly impossible to figure anything out and nothing ever seems to work… everything seems to be “incompatible with xcode6, you need xcode8, which wont work with itunes 7, you need itunes 9, which wont work with your iphone, and wont work with itunes connect either”. I kept telling myself “you are just new at this, you’ll get used to it”. But it seems that its just the way it is, for the way you talk about it. Anyway, thanks for the post, it definitely helped

    1. Hi yommama, it’s not just you – it’s the system. It’ll grow on you after a while, trust me 🙂 Trouble is, the moment you get used to how things work, Apple go ahead and change everything. It’s a never-ending learning experience. Keeps you sharp!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.