简体   繁体   中英

App release Code Sign error on xcode

I tried to build release version of my project for my iPHone device. (I choose Products->Archive), then I got the following error:

Code Sign error: The identity 'iPhone Distribution: XXX' doesn't match any valid, non-expired certificate/private key pair in your keychains

What does it mean & How to get rid of this problem?

By the way, I opened my keychain access, and found this iphone Distribution: xxx under " certificates ", it is not expired.

I googled the problem, someone said it is because my app bundle id does not match the one defined in provision file. But how can I check the bundle id defined in provision file?

Go to Project->target->Build settings, change your code signing identity for release. Do the same in Project->Build settings-> Codesigning. Then clean the build and build it again.

If it is not working, close the project and open it again and build it. it will work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM