简体   繁体   中英

Codesign error while archiving IOS app

I am new to IOS. I have developed an IOS application now i want to publish this application on iTunes. I have created Certificate, App ID and then Provisional profile. I have succesfully added this in “Code Signing” section of "Build Setting”. Now, while Archiving the project i am getting a following error.

error: Couldn't codesign /Users/dx/Library/Developer/Xcode/DerivedData/xxxx-dgsqnqppikhtqeezizlbydrpxfiz/Build/Intermediates/ArchiveIntermediates/xxxx/InstallationBuildProductsLocation/Applications/xxxx.app/Frameworks/libswiftCore.dylib: codesign failed with exit code 1*

Please help me out of this problem. Thanks in advance.

You need to re-generate your provisioning profile from Apple Developer Center. As far as I know they add something new to profiles and that causes the problem.

Solution

In keychain access, -> Show Expired Certificates, then in your login keychain click on expired certificate and delete it. I also had the same expired certificate in my System keychain, so I deleted it from there too.

-> After deleting the expired cert from the login and System keychains,download certificate from below link and open with keychain.

Download https://developer.apple.com/certificationauthority/AppleWWDRCA.cer and add it to Keychain access > certificates (which expires on 2023)

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