40

I hope to test my app on iPod Touch

I created development provisioning profile.

I dragged downloaded .mobileprovision file to Organizer

There is a yellow triangle warned that "A valid signing identity matching this profile could not be found in your keychain"

The others distribution provisioning profiles have no any problem.

I checked my connected iPod Touch. Organizer also said that:

OS Installed on "interdev"'s iPod 3.1.3 (7E18)

Xcode Supported iPhone OS Versions

  • 3.1.1 (7C146)
  • 3.1.1 (7C145)
  • 3.1 (7C144)
  • 3.0.1 (7A400)
  • 3.0
  • 2.2.1
  • 2.2
  • 2.1.1
  • 2.1
  • 2.0.2 (5C1)
  • 2.0.1 (5B108)
  • 2.0 (5A347)
  • 2.0 (5A345)

iOS 3.1.3

Xcode 3.1

Do I need to upgrade Xcode?

1

9 Answers 9

140

OK, I had this exact problem and have searched the internet far and wide for a clear description of what you should do to resolve this.

I know this is an old topic, but I'm going to write this for the people who may stumble across this in their seemingly hopeless search for an answer.

  1. I'm sure there is another way to do this, but in all honesty, unless you're working with a TON of apps and are feeling too lazy to reassign a new certificate, just do this!

  2. I am really new to the dev center on apple.com and to xcode, so i'm going to write this out as thoroughly as I can.

Obvious:

READ ALL OF THESE INSTRUCTIONS BEFORE STARTING! THERE ARE A FEW TRICKY THINGS THAT SHOULD BE NOTED BEFORE STARTING! I TRIED TO MAKE THEM OBVIOUS IF YOU DIDN'T READ THEM ALL BEFORE YOU STARTED, BUT FOR SAFETY SAKE, read them all first.

You need a paid developer account to put ANYTHING on your iphone/ipod/ipad through Xcode.

Ok. first, go to your applications folder and open keychain access.

Note that you can click on "login" and "System" words at the top left. This is vital to a later step, and to the next couple as well. You will need to unlock them if they are locked so that you can modify the content in each.

find your certificates(all of them, the worldwide dev one, the developer one, and possibly another one with the same name associated with it as the developer) in login and system

delete the bastards.

If you try deleting them, and they still stay in the list, you will just need to reboot your computer and do it again. This was the most annoying part of my journey to understanding the solution, so enjoy this information. A reboot will fix that issue if it arises.

Once all traces of those certificates are gone from the lists:

Get rid of the keys associated with those certificates. They will probably have your name attached to them and you can find them by clicking on "keys" at the bottom of keychain access window and looking in either the login or system list. Delete them and delete them good. Remember, if they don't leave the list after you press and confirm your deletion, reboot and it'll work.

IF YOU WORKED ON A DIFFERENT MACHINE WITH NO ISSUES AND THEN SWITCHED TO A NEW MACHINE AND EVERYTHING WENT HAYWIRE, THEN THERE WILL BE NO KEYS TO DELETE. THIS IS WHERE THE PROBLEM HAS BEEN FOR YOU. DO NOT WORRY! WE WILL CREATE NEW KEYS TOGETHER AND WE SHALL BE HAPPY!

Using SAFARI

Using SAFARI

Using SAFARI

(using safari is important because you will come across a needless error while trying to upload your certificate request otherwise. This was one tidbit of information that saved me from tearing all of my hair out as I tried time and time again to submit through Chrome.)

go to developer.apple.com and sign in and go to the ios portion of the dev center.

go to the ios provisioning portal on the right hand side of that screen.

click certificates, and REVOKE the current (and problematic) certificate.

click Home on the left hand side.

click on the "Launch Assistant" button under the "Get your application on an iOS with the Development Provisioning Assistant" headline towards the bottom of the screen.

Go through and follow all of the directions.

It will tell you to open up your applications folder and open keychain assistant.

at the top of your screen (next to the apple symbol, while the keychain access window is active (hey, i said i was going to make it easy for beginners) click on the words "Keychain Access"

click certificate assistant

click Request a certificate from a certificate authority.

fill in your information and then click saved to disk. and continue.

follow the steps to create the request file and save it to your desktop (which is default, so you will probably just need to say ok)

go back to your SAFARI window, and it will be asking you to choose the certificate request file.

choose it from the desktop and continue through the assistant until it's complete.

you have created the necessary public and private keys while creating the certificate request. SO YOU HAVE KEYS! YAAAAY!

next step is to download the WWDR intermediate certificate and your newly created development certificate.

Both of these can be found in the "certificate" tab on the left side of your screen. The WWDR is shown as a link under the development certificate list.

Download them and DO NOT CLICK THEM TO AUTOMATICALLY INSTALL!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

This is where you will get into stupid trouble and think, I DID EVERYTHING RIGHT! I DID WHAT YOU ASKED OF ME AND STILL THIS DOES NOT WORK!

Here's the trick. The final piece of the puzzle.

Open your downloads folder and find the downloaded files.

Open Keychan Access (if you closed it) and find the keys that were created while making your certificate request. They will be either in the login or the System list. Don't forget to unlock the lists if necessary.

Drag and drop the downloaded certificates INTO THE LIST WHERE THE KEYS ARE!

If you drag and drop them into the other list, the keys will have no idea that you did that, and they will be lonely forever and you will feel your chest tighten up and the rage of the unknown boiling from your gut.

If you dropped them into the list that contains the keys, then you will notice a little drop down arrow to the left of the iphone developer certificate you just dropped in there. Click it and revel in the beauty of a key hanging out with its long lost friend.

THAT'S IT!

Now when you make a new mobile provision through the ios portal, and link it inside there with your newly created certificate, everything will be copacetic inside Xcode.

10
  • 30
    Upvote for useful instructions and comedic levels of frustration
    – Nick
    Feb 11, 2011 at 22:20
  • 5
    "find your certificates(all of them, the worldwide dev one, the developer one, and possibly another one with the same name associated with it as the developer) in login and system delete the bastards." - I think that's the first time I've lol'ed at an SO answer..... Vote up!
    – Sid
    May 5, 2011 at 19:31
  • 1
    here here, Simon... u rock! this deserves the check!
    – Ben
    Jul 28, 2011 at 5:27
  • This helped a lot. I have to say that with my current version, dragging the certification to the certifications section in Keychain worked as expected. I then created a new provisioning file for distribution through the dev center, and it seems to be working :).
    – agmcleod
    Oct 5, 2011 at 4:28
  • 1
    OMG Thank you so much, spent a week trying to solve this issue. Everything I tried, anyone I spoke to said I was doing it correctly. +1000 if I could Oct 18, 2011 at 17:10
8

I had the same problem and solved it very simply in XCode Organizer - I'm using Version 4. All I did was go to the top Library section and select Provisioning Profiles, and import the downloaded profiles that I had received in my Safari downloads named "name.mobileprovision".

3
  • 1
    Sorry about the downvote -- somehow I managed to accidentally click down and not notice it, but now it's too late to change it...
    – Nathan S.
    Jul 8, 2011 at 4:43
  • Sad face :( Don't worry about it!
    – James K
    Jul 12, 2011 at 10:12
  • This was the last step I needed after doing a clean install of Lion and importing keys/certs into the login keychain. This worked for me, but let me clarify Wonderboy, as when I first read his answer I said, "Great how and where do I import the profiles". 1) Open Xcode's Organizer (from Xcode's menu Window --> Organizer). 2) In the Organizer window, under "Library" upper left, select "Provisioning Profile". 3) At the bottom, click the "Refresh" button, sign in when prompted and wait for profiles to download.
    – mmorris
    Dec 15, 2011 at 21:44
6

It sounds like you don't have a development certificate in your keychain that matches one of your provisioning profiles.

dev portal screenshot

Make sure that you have the dev cert and you have matching provisioning profiles. Also, if your app is using the keychain, make sure to include an Entitlements.plist (containing your app id, so your apps can share a "slice" of the keychain) in your project.

1
  • 4
    +1: You need to reinstall your development certificate each time you create a new provisioning profile.
    – warrenm
    Apr 26, 2010 at 15:54
4

I got that same bloody msg. Seems to happen every time my provisioning profiles expire. It happened again just now; I clicked Renew, downloaded the new profiles, installed them in Xcode, and there's that msg again.

So then in the Portal I clicked "Edit" by the profile, then Modify, and on the resulting screen the checkbox by MY name -- for which cert to use -- was unchecked! So I checked the box, hit Submit, and when the new profile became available installed the thing in Xcode. I'll be darned; the blasted thing worked.

How in the world that thing became UNchecked I'll never know, but now at least I know what to do.

2
  • 1
    Yeah it was unchecked suddenly
    – Allisone
    Oct 21, 2011 at 6:00
  • +1 This happened after I renewed a provisioning profile. I followed the directions here, but found my name was checked. Nevertheless, downloaded the profile (in Safari of course), then double clicked it in the Safari download list, and all was good. See @Wonderboy's answer as well.
    – brainjam
    Nov 2, 2011 at 19:39
2

For the iOS Provisioning Profile error -

Valid signing identity not found

see Apple's published steps to resolve this problem, titled What does 'Valid Signing Identity Not Found' mean and how do I resolve it?.

1

I had a working iPad provisioning profile installed with XCode 4, then added an iPhone and found that the newly downloaded provisioning profile wouldn't work with either device. Checking the certificate and the link in the keychain did not help for me.

Turns out that after re-adding my certificates, and trying to close and reopen xcode, I needed a reboot before I could add the provisioning profile back into xcode and make it happy. Perhaps there is some underlying problem about needing to refresh values cached by keychain in RAM?

It is possible it may have worked by just logging out and logging back in too.

0

Another cause of this I discovered can be if you haven't created a Distrubution Certificate properly. I dismissed the message Xcode gave saying it would generate one for me, but after restarting and letting it generate one it worked no problem

0

If you know (for sure) that your key/pair and provisioning profiles are installed properly but you're STILL getting the infamous error, this simple solution worked for me (for good measure, clean your target first).

Go into build settings and locate the code signing area. If it's not already selected, choose the profile type in the "Automatic Profile Selector" section at the top. Try toggling between direct selecting and the automatic profile selector if it was already there.

Worked for me!

0

Another cause of this is when you choose the wrong Application on the "Choose an application record and a profile to sign with" screen. This can happen easily if you have multiple applications with somewhat similar names and you happen to select one that does not match the provisioning profile used in the archive build.

Not the answer you're looking for? Browse other questions tagged or ask your own question.