After updating to iPhone OS 3.0 beta 5 (from beta 4) I could not build anything, it says:
"Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default keychain"
And in the Organizer it says:
"A valid signing identity matching this profile could not be found in your keychain."
So then I tried creating a new provisioning profile, which didn't help. I tried reinstalling the developer certificates, no joy.
I then tried creating new developer certificates, but the Keychain Access app stalled forever while finalizing the request.
Then I tried to move the certificates and private and public keys from the login chain to the system chain using drag and drop, but this caused my keys to disappear entirely! They left the login chain but never made it to the system chain!
Now I'm looking at having to restore my entire system from a Time Machine backup I did earlier today and starting over