Avnish Choudhary
Avnish Choudhary

Reputation: 838

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.

Upvotes: 5

Views: 2109

Answers (1)

Nishant Gupta
Nishant Gupta

Reputation: 457

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)

Upvotes: 1

Related Questions