code sign error in xcode, no identity found

2020-03-01 03:34发布

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.

标签: ios iphone xcode
7条回答
地球回转人心会变
2楼-- · 2020-03-01 03:59

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.

查看更多
登录 后发表回答