Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
316 views
in Technique[技术] by (71.8m points)

Code Sign error: The identity 'iPhone Developer: x Xxxxx' doesn't match any identity in any profile

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
  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=iphoneos*]" and set it to "CODE_SIGN_IDENTITY[sdk=iphonesos*]" = "iPhone Developer";
  4. Search for "PROVISIONING_PROFILE[sdk=iphoneos*]" and set it to "PROVISIONING_PROFILE[sdk=iphoneos*]" = "";
  5. Save the file
  6. 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.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...