Ios – Xcode: iPhone app codesign error

code-signingiosiphonexcodexcrun

When building a new iPhone app in Xcode, I'm getting this error:

codesign error: code signing identity
'iphone developer' does not match any
code-signing certificate in your
keychain. once added to the keychain,
touch a file or clean the project to
continue.

What's the fix?

Best Solution

The fix is pretty simple. In the Build Results window (which you probably got to by clicking the error icon in the lower right corner of your project window), change the pulldown menu from ‘Device - iPhone xxx’ to ‘Simulator - iPhone xxx’.

xcode-screenshot
(source: kickasslabs.com)