You probably ended up here while searching for the following error message in XCode when trying to build and run your first IPhone app :

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

Before you start googling and attempt to move certificates all over, or spend $99 USD getting the developer account check the following:

Make sure you are building and running for the simulator and not your IPhone device. This is rudimentary but easily missed.

I ran into this error upon compiling a test ‘Hello World’ app. So I’m pretty sure there are more people out there running into this error.

Xcode Dropdown.png

XCode defaults to building and running on the IPhone device, which is not possible until you have a developer’s account. Building and running on the IPhone requires the code to be signed before building, which results in the error that you have gotten.

I hope you have found this before going for the last resort of subscribing for the developer’s account. And if you already did, happy programming! Hope to see your app on the App Store soon!