It seems that there are a myriad of things that can go wrong and here's yet another (at least this ended up being my problem):
When creating my Certificate Request for a new iPhone Developer Certificate (after my old one expired), I entered the email address that Apple has on file for me in my developer profile. However, this email address isn't the same email address that I used to CREATE my iPhone Developer account.
Even if you've updated your profile information, you must still use the email address that you used when creating your account.
Yes, the "How-to" guide says, "Enter the email address you used when you created your account" but I (mistakenly) assumed that Apple would be smart enough to use your CURRENT email account. It seems to me that there should be a warning about that but... oh well.
What is more frustrating is that Apple went ahead and issued the certificate, and in the keychain utility, it listed the certificate as being valid. However, XCode was never able to use it. I'm not sure how that all works (nor do I care at this point) but it ended up causing DAYS of frustration.
In the end, I deleted all of my certificates and mobile provisioning profiles and started from scratch. I called Apple to make certain that I was entering the email address and name (sometimes I used my middle initial and sometimes I don't) that was used when the account was created and... VOILA.
I'm now off to drink profusely and forget all about Code-Signing problems until after the weekend.
Hope this helps some poor soul.
Quote:
Originally Posted by husoft
I had the same problem as joni
"A valid signing identity matching this profile could not be found in your keychain."
Solved it with just this step:
in Keychain Access right clicked "login" keychain and set it to default.
Restarted Xcode and all is good again. Have no idea what caused the problem.
Thanks - this was exactly my problem - dropped it in the wrong "appropriate spot"
Quote:
Originally Posted by jdandrea
A-ha! Here's wha' happen' ...
In Organizer, recall that I "Dragged-and-dropped my downloaded provisioning profile into the appropriate spot in the Organizer." The key word here is Appropriate.
I only dragged-and-dropped it into the "Provisioning" section under my "iPod Touch" device summary. HOWEVER ... I did not drag-and-drop it into the "Provisioning Profiles" section under "iPhone Development". Until now.
Build ... and ... TA-DAH!
(I really do hope this helps someone. Such a li'l thing!)
I have a newbie question, do I have to purchase the certificate from Apple in order to deploy my app from XCode to my personal iPhone just for testing or is there a way to do that like every other existing in the world IDE's and just copy the application to an iPhone?
Thanks
Still not got anywhere with this. Just deleted my developer certificate from the key chain thing. And reinstalled. Still all grayed out!!!
Their must be some files I could delete, and reinstall to get the correct entries somewhere...?
I just spent a few hours wrestling with a codesign problem and then realized the solution was quite obvious. What I was doing wrong was that when I was requesting my certificate I was not inputting my name/email address exactly as entered for my Iphone developer status. I redid it all correctly and finally was able to code sign.
Also, I found that a lot of the online instructions (like the helpful devclinic link earlier in this thread) fail to mention the pushhost certificates process either.
Hello, I'm a real real newbie, with just a couple of hours of getting involved in iPhone development. Actually, I was just following a tutorial and tried to build and empty view, just to get a blank view on the emulator; I got the error someone pasted above:
"Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default keychain"
I have no idea about those certificates, do I have to get it by paying the $99 of the Developer Programme? Even if I'm only learning? I thought it was required if you needed to test your apps on actual devices. I'm confused
In my case, I copied the project from my iMac to my Macbook Pro and found out I didn't have my private key installed on the Macbook. So I exported my private key, copied and installed it to the Macbook, and voila it works! I've documented the information here: Creatist: iPhone Development Provisioning on both iMac and Macbook Pro
I have read everything on this thread and the Apple documentation many times over, repeating the whole process and getting no where !
On the Keychain Access -> file -> make keychain 'login' default is greyed out - any reason why ?
I checked that the email and name I used are as entered on sign up (recieve email to that address, my name is spelled correctly)
The provisioning profile XXXXX.mobileprovision is in '.../../.../Provisioning Profiles' folder, having dropped file onto XCode in dock
It shows in the Xcode organiser under provisioning profile
In Keychain access I have 3 certificates:
1. Apple World Wide Developer Relations Cert Authority
2. iPhone Developer:.....
3. iPhone Distribution......
All certificates are valid.
I followed the Apple instructions exactly
The problem is same as described: - Target -> Info -> Build -> Code Signing Identity -> Any iPhone OS -> iPhone Distribution (no profiles currently match)
Any idea what I can do to get past this problem as it is just wasting too much time already :-(
Seem to be on an infinite loop of repeatedly trying to get a distribution build here.
Checking everything very carefully. I decided to start clean project and copy all sources to make sure no error in the project file. That done, it seemd to solve the problem, and the distribution provision was not grey out - it selected happily, and I was relieved...
But finally checked everything before Build. Argh !! one error. Same old problem; claiming that the profile does not match
I have clean project again, this time it offers no such false hopes, and the code signing refuses to cooperate
If you open keychain and click on your certificate, does it say that the certificate is valid or invalid?
hi guys
I am very new to this
I am having the same problem and i can't see any certificate with xcode in keychain....can someone help me with this???
thanks
sorry in advance for a probably silly question, but...
i'm just playing with the sdk and some examples, included some from the apple site, but i got the same error of some of you
in the keychain i got just the apple worldwide developer relations certificate autohority, i guess i need some other, right?
the question is: did i need to join the iphone developer program (paying the 99 fee) even only to test a simple sample app on my ipod touch?
I have similar problem. I had a provisioning profile for development expire, I renewed it, and ran into all sorts of problems. I went to keychain access and deleted all certificates. Now I have WWDC Development and Distribution Certificates. Organizer shows Provisioning Profile and Distribution Profile each with App ID 3TAEG38J55.* When I try to build for distribution everything on iTunesConnect says invalid, not signed by Apple. The Distribution Profile will show in bold and it will build without errors, but the binary I upload won't work. What am I doing wrong? I have had 6 apps submitted in the first quarter with no problems, and then ran into this.
Hi , i create a provision and developer identity.certificate with apple provision assistant and i have huge problem , everything done , but when i add my certificate into KeyChain , the certificate add , but doesn't show on the Keys and my Certificate and xcode Organizer says
Quote:
a valid signing identity matching this profile could not be found in your keychain
and compiler :
Quote:
Code Sign error: The identity 'iPhone Developer' doesn't match any
valid certificate/private key pair in the default keychain
i didn't have this problem on the leopard with sdk 3.1 my current os is 10.6.2 SDK 3.1.3 what's the problem ?
Hi , i create a provision and developer identity.certificate with apple provision assistant and i have huge problem , everything done , but when i add my certificate into KeyChain , the certificate add , but doesn't show on the Keys and my Certificate and xcode Organizer says
Quote:
a valid signing identity matching this profile could not be found in your keychain
and compiler :
Quote:
Code Sign error: The identity 'iPhone Developer' doesn't match any
valid certificate/private key pair in the default keychain
i didn't have this problem on the leopard with sdk 3.1 my current os is 10.6.2 SDK 3.1.3 what's the problem ?
the certificate is valid ...
Well, after upgrading the SDK I eventually had to go to the apple developer portal and create all new profiles and certificates that had a 3.1.2 SDK inside of them and then deleted everything from the keychain and reinstalled the new certificates and profiles.
You have to follow a setup wizard at the developer portal of apple like if it was your first time there.
At least this is what worked for me.
I'm as newbie as they get, and really confused by Mac language.
I get the error:
"Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default
keychain."
So I guess I need to edit something so my developer name is in there, but I can't figure out what. I don't even have a folder for mobile devices, and I've searched for any files with "provision" and get nothing. I try to upload acertificate signature request and can't find instructions. Can't find a developer portal in the development center.
I'm as newbie as they get, and really confused by Mac language.
I get the error:
"Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default
keychain."
So I guess I need to edit something so my developer name is in there, but I can't figure out what. I don't even have a folder for mobile devices, and I've searched for any files with "provision" and get nothing. I try to upload acertificate signature request and can't find instructions. Can't find a developer portal in the development center.
Soooooo frustrated.
Did you paid the 99$ for the developer certificate at the apple developer website? If not as far as I know you cannot install your app on the iPhone/iPod ( i.e. real device ) you should be able however to test the application on the Emulator that comes with XCode.
I have a similar issue! I had to do a clean install of SL. I still have my old certificateSigningRequest and cer identity files and provisioning profiles.
I installed the cer files in my keychain by doubleclicking them but when I drag the provisioning profiles to the organizer window in Xcode I get an invalid non matching certificates with keys error.
I thought so, so my new question becomes; I have to revoke the old dev and dist certificates from the portal and delete the prov profiles and create new certificates and prov-profiles in the portal?
Just one doubt, will it affect my existing apps in the AppStore?
Quote:
Originally Posted by husoft
I had the same problem as joni
"A valid signing identity matching this profile could not be found in your keychain."
Solved it with just this step:
in Keychain Access right clicked "login" keychain and set it to default.
Restarted Xcode and all is good again. Have no idea what caused the problem.
In Organizer, recall that I "Dragged-and-dropped my downloaded provisioning profile into the appropriate spot in the Organizer." The key word here is Appropriate.
I only dragged-and-dropped it into the "Provisioning" section under my "iPod Touch" device summary. HOWEVER ... I did not drag-and-drop it into the "Provisioning Profiles" section under "iPhone Development". Until now.
Build ... and ... TA-DAH!
(I really do hope this helps someone. Such a li'l thing!)
Wiked!!! AAAAAAHHHHHHHHHHHHHH ryt now i cant even smile cuz ive been tryna figure out problems after problems then i came up with this error and for ages i was trying to figure out what it was. the reason it never worked other time was because it involved other errors but when i finally cracked down to this point it was because i didnt drag and drop into the correct BOX!!! AAAAA APPPLE WHYYYY? Thank You Dude now i can sleep peacefully. ZzZzZzZz