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.
Your Distribution Profile might not be valid or not properly verified, go to
Organizer->Devices->Provisioning Profiles
and try to refresh your profiles(delete & refresh) they will show up after refreshing. Once refreshed, make sure the green icon as status is showing with the profiles if it is valid and signed properly. if it does not solve your problem then you need to create the Distribution profile again. You could find this tutorial helpful if you are getting started with distribution of your app. I hope it helps your causeThe problem is you need to create/update a provisioning profile for you new device. Provisioning profiles are associated with devices, once you set that up correctly, you should be good to go
i am not sure why my solution worked, but after hours of trying everything else... i changed code signing settings in both project and target windows. code settings under 'project' shows my provisioning profile (photo below), code settings under 'target' is now set to 'automatic'. maybe before i had conflicting settings?
I have the same issue, the reason is after I run other project and
fix the issue
with the other project.My solution is :
Xcode
->Proferences
-> ChooseApple IDs
-> ChooseTeam
->View Details
-> Signing IdentitiesiOS Development
andiOS Distribution
reset.Then Run project to
iphone
it works fine.I didnt have proper developer/distribution certificate in my keychain. When i installed it to my keychain, issue disappeared!
I have been in contact with apple and after a few emails back and forth they found my problem. For some reason (I don't know how this got there) in the Build Settings under Code Signing -> Other Code Signing Flags I had "--keychain keychainname.keychain" written down there. After I removed this my code sign error dissapeared.
Every body thanks for the help.