128
votes

I have an error "No identities are available for signing" when try to validate my app in Xcode 5. I tried all: Recreate certificates and provisioning profiles, all methods which have been described on this site and another resources; I'm confused, because when I try to distribute my app as Ad-hoc, it successfully create and install on test device an IPA file. But when I try validate my app or submit to AppStore, all the time I have an error. Maybe someone can help me with this issue.

24
Same exact situation here. Able to build/distribute ad-hoc but not app store. Please answer back if you find a solution.VaporwareWolf

24 Answers

211
votes

All you need to do is:

  1. go to Certificates, Identifiers & Profiles in the Developer Center

  2. create a new provisioning profile in "Provisioning Profiles" / "Distribution"

  3. download the profile and open it

  4. restart Xcode

21
votes

Please make sure you are using distribution provisioning profiles, rather than Development. And the code sign setting in Xcode is compatible with the distribution provisioning profiles.

enter image description here

17
votes

The validation process does not work with Ad-hoc profiles. Need to create a Distribution provisioning profile. It is not specified in the instructions for beta testing. I agonized all day until realized.

12
votes

Use the Application Loader (Xcode -> Open Developer Tool -> Application Loader).

Also - this answer/question may also be helpful for you: https://stackoverflow.com/a/18914073/730172

11
votes

Restarting Xcode solved the problem for me! Restart and/or clean solves 99% of all issues...

5
votes

@CainaSouza 's comment above worked for me. I didn't even have to create any new provisioning profiles.

I just had to go to Xcode > Preferences > Accounts > (Apple ID) > View Details and hit the refresh button. After a minute or two it was done and had loaded my provisioning profiles. I didn't even have to select it in my project options, it had already selected my most recently generated one.

5
votes

Clean your Product Build Folder (with Alt button) Restart Xcode

It solved my same issue

2
votes

I had a similar issue. Found out that the bundle identifier did not match the app id that was on itunes connect - it was capitalized differently. Fixed the issue by making the identifiers match.

2
votes

Yes the appID and bundle identifier must match. Remember it is CASE-SENSITIVE. That was the problem for me.

2
votes

I updated to Maverick and Xcode 5 and had the same issue even though I had everything ok in Profiles. I created a new Distribution profile (identical to the old one), added it by refreshing profiles and the issue was solved without rebuilding.

1
votes

Apple Decided to "Magically Dissapear" my distribution provisioning profile from their site after upgrading to a newer Xcode, giving me this problem too.

Solution is obvious only once I had discovered this fact!

-Create new Distribution Provisioning Profile

-Download & install it / Refresh Xcode preferences under account details

1
votes

I fixed this issue by delete the old development/distribute profiles and create new one with new names.

1
votes

I had a mismatch between the Bundle Identifier within Xcode and the App ID on Developer.Apple.Com (Certificates, Identifiers & Profiles). This StackOverflow post was a great help to me. For a little extra info check out this blog post. The official documentation for the touch command can be found here. I had quit Xcode before doing the below. Upon completion of the details below and reopening Xcode my issue was resolved.

Use a text editor to update the bundle identifier to match the App ID, the Info.plist file is located:

ProjectName > ProjectName > ProjectName > ProjectName-Info.plist

Your looking for the following lines:

<key>CFBundleIdentifier</key>
<string>MyCompany.${PRODUCT_NAME:rfc1034identifier}</string>

Update the value to match you App ID, eg:

<string>com.MyCompany</string>

Use the terminal to issue the touch command, ensure your within the above listed directory:

touch ProjectName-Info.plist
1
votes

If you are using Xcode 5.1 or above (which you would be now), this helped me: Code signing broken on Xcode 5.1 + iOS 7.1

The key is to delete the old provisioning profile on your mac and create a new one (with a different name?) from Apple web site and download it. Looks like Xcode 5.1 corrupts the existing provisioning profile and it does not help even if you re-download it again.

1
votes

My solution was to go into the dev center, find the distribution provisioning profile, and it had expired. So i tapped edit on it, and renewed it, downloaded it, installed it, chose the profile in the build settings, and it worked.

HTH someone.

1
votes

Of all the development issues I've faced over my 20+ years as a software developer, none have wasted so much time as the code-signing/provisioning profile rubbish in Xcode.

This week, I have wasted 8+ hours trying to build an Ad-hoc release of our iPhone app. In the past, it just worked, I could Archive, stick a download button on our in-house webpage, and users could just install our app from this page.

But, this week, I was facing the same "No identities are available" issue, described here.

EVENTUALLY, here's what solved the issue for me:

When I logged into the hopeless Apple Developers website, it showed that our company had 2 "iOS Distribution" certificates. They were valid, their expiry dates are months away, and in the Keychain Access application, the certificates were installed and valid... no problems here.

But what fixed my issue was to delete these two certificates, recreate a new one, then recreate my "In house" Provisioning Profile (as the original one was now showing as being invalid, as it used the old "iOS Distribution" certificate).

I also went into the "Keychain Access" application on my MacBook, and deleted all "iOS Distribution" keychains.

Then, I downloaded the new certificates & provisioning profiles, now, finally, Xcode would report that there was an identity which I could code-sign with.

To the Xcode development team:

Please. Get this fixed.

If a developer like myself, is up against a wall, unable to get a valid Provisioning Profile, which will result in a downloadable app, which will fail each time on "The app couldn't be downloaded at this time" message.. DON'T allow the Archive function to be used.

Instead, TELL the user what the problem is. HELP them resolve it, rather than going through the motions, and happily allowing them to create Archives which will never be useable.

And if an Ad-Hoc install is invalid, please put something in the Log to explain what's gone wrong, and make this accessible from Xcode. Currently your "The app can't be downloaded at this time" message is both useless and misleading.

One last thing (if this helps):

Our company accidentally let its Developer Enterprise Program license expire last month. We did then renew, everything was seemingly okay again, but perhaps, behind the scenes, this messed up our "iOS Distribution" certificate ? And perhaps, not. From the Apple website's point of view, everything was fine.

0
votes

My issue was that I had none.myApp in my Bundle Identifier whereas in the AppID, I had com.myApp.

This drove me crazy for hours.

0
votes

I ran into this issue today and it seems to be related to the face that the profile started with a number. I deleted the profile and recreated it exactly the same way (after a lot of other troubleshooting steps found on SO) EXCEPT this time I started with a word instead of a number. Coincidence? Not sure but worth trying.

0
votes

Had this yesterday and could not figure it out, no matter what I did! To solve the problem, I went to both the Project and the Target in Xcode, and under code signing, chose

  • Code signing identity: Don't code sign
  • Provisioning profile: None

Build, and then Product > Archive, and now Organizer chose the correct code signing identities and profiles to allow it to get to the Validation step. Woohoo!

0
votes

It happen to me after update Xcode.

I fixed doing the follow

  • change the sign in to "no sign"

  • restart Xcode

  • set it to the correct sign

  • re-archive the build

I hope it helps

0
votes

Apple Documentation

"If Xcode doesn’t find signing identities, a dialog stating “No identities are available for signing” appears. Verify that you have a distribution certificate and an ad hoc provisioning profile before continuing.

If your ad hoc provisioning profile doesn’t appear in the Provisioning Profile pop-up menu when you create the iOS App Store Package, refresh the profiles in Xcode, as described in “Refreshing Provisioning Profiles in Xcode.”"

0
votes

In my case, the adhoc provisioning that I wanted to set was not selectable in Code Signing in Build Settings. Though, I created and downloaded the adhoc provisioning from developer store. The answers mentioned here didn't work for me. Fix Issue button in General tab fixed the issue by downloading the required adhoc provisioning file by itself.

0
votes

Creating a new certificate, Profile in Apple development center did not work for me! I tried editing a profile/certificates and download again and double click to install in KeyChain, but still did not work. I restarted XCode (Version 7 and Mac on El Capitan), restarted Mac but still did not work!

What worked for me is: XCode -> Preferences -> Accounts - Then I deleted the Apple ID. Shutdown my Mac, and restarted it. Started my XCode, added the Apple ID, went to view details in Apple ID's and downloaded the Provisional Profile again and only then it started working!

-3
votes

Restarting solved my problem. I have a new mac and tried downloading the profiles, which should've transferred anyways. restarting solved it.