views:

15957

answers:

6

I get this build error when I build my iPhone project to run on my device: Code Sign error: The identity 'iPhone Developer: x Xxxxx' doesn't match any identity in any profile

My development code signing certificate expired so I got a new one. On my first attempt I created a new CSR and got the message above. The second time I reused my original CSR and got the same result. Another strange thing is the new certificate has an extra string with brackets after my name in the "common name" when I look at it using Keychain Access like this:

iPhone Developer: x Xxxxx (3BDUAJYC9Q)

My original certificate didn't have that.

I have Xcode Version 3.1.3 Component versions Xcode IDE: 1191.0 Xcode Core: 1192.0 ToolSupport: 1186.0

Does anyone know how to solve this?

+8  A: 

I think you need to create new provisioning profiles based on your new certificate.

David Maymudes
Great. But how?
Sergio Oliveira Jr.
+1  A: 

Silly me... The problem was I still needed to create a new "Provisioning Profile" which uses the new certificate in the iPhone program portal and load it into Xcode. I didn't need to add the extra string after my name in the code signing section for debug.

Cal
A: 

Thank you! Worked perfectly :) Can anyone tell me how to aquire a iPhone Developer identity and where to add for this to work without the hack?

Spotlight Direct
A: 
  1. Right Click the Project (eg. x.xcodeproject) and select Show Package Content
  2. Open project.pbxproj with textEdit
  3. Search for all "CODE_SIGN_IDENTITY[sdk=iphonesos*]" and set it to "CODE_SIGN_IDENTITY[sdk=iphonesos*]" = "iPhone Developer";
  4. Searach for "PROVISIONING_PROFILE[sdk=iphonesos*]" and set it to "PROVISIONING_PROFILE[sdk=iphonesos*]" = "";
  5. Now Save the file
  6. Now Reopen the xCode project or select "Read from Disk" resulting from xcode the prompt.
  7. This Worked for me. i hope it works for you too
kw4m3n4
A: 

If you have multiple developer accounts, then make sure you're signed into the right one in xCode- that was the problem when I had this error.

Gorgando
A: 

hey im sorry i have the same problem the same error but ididn't get the explanaiton the first step where to find the project? i used the finder to look for all project.pbxproj and i couldn't find inside the line you talked about CODE_SIGN_IDENTITY[sdk=iphonesos*]" i found it in different files but not in all the project.pbxproj what shall i do....?? thanks for help

lev