I've looked to solve this problem for several hours now, so hopefully someone can help me.
When I try to Archive my project (so I can put it in the app market), I get a code sign error:
Codesign failed with exit code 1
and some additional information says
iPhone Distribution: company name: no identity found
I've created a distribution profile (multiple times) and followed several suggestions (like uninstalling/installing Xcode). Also my distribution profile expiration date is February 2014.
I can Build my project without any problems and run it on an iPhone with my iPhone Developer profile.
Does anyone knows what I'm doing wrong here? Any help would be appreciated.
I've got the similar error and found the reason that my certificate in keychain was not the one that I attached to the provisioning file in apple developer portal. Because there were two certificates with same name and I downloaded the wrong one. Upon downloading the correct certificate and double clicking to put into keychain solved the problem.