I ran in to the weirdest error today. “sudo: unable to resolve host”. I got this error even running as root which was the really weird part. I was especially confused because I have been running Linux as my main OS for the better part of 10 years and have never run into this issue. Turns out the solution is very simple and almost elementary however I decided to make a quick post about it.
Resolve Code Sign error: The identity ‘iPhone Developer’ doesn’t match any valid certificate/private key pair in the default keychain
I ran into following error when clicking Build > Build and Go after you open your .xcodeproj file in XCode. I was attempting to download and run my iPhone app on my iPhone device (not the simulator).