Monday, February 7, 2011

Code Sign error: The identity doesn't match any valid certificate/private key pair in the default keychain

Importing a project from someone else (say downloaded from the internet) and their old certificate info is cached as part of the xcode project. For me, it wasn’t accessible through xcode, steps I used to fix it:
1) Quit Xcode. 2) Right click on your xcodeproj file, select view Package contents. 3) Edit project.pbxproj
Search for CODE_SIGN_IDENTITY and change the certificate info to your own. Do the sameoperation with PROVISIONING_PROFILE lines

Sources: http://www.mmisoftware.co.uk/weblog/2009/08/30/iphone-code-signing-problems-when-debugging/

http://stackoverflow.com/questions/1074546/the-executable-was-signed-with-invalid-entitlements

No comments: