I have been really sick and tired of this. I have done all the possible way to resolve this. But not getting the success. My SWIFT code is working fine on simulator . But when I try to run it on device or try to make an archive , I get this compilation error
Couldn't codesign /Users/SandeepHoney/Library/Developer/Xcode/DerivedData/SocialCircle-advannpwpzlrtleupycqgmvugcst/Build/Products/Debug-iphoneos/SocialCircle.app/Frameworks/libswiftCoreLocation.dylib: codesign failed with exit code 1
I have tried to re-generate provisioning profiles. but that thing isn't even working. I have followed this. But not working.. Don't know where I am doing wrong.
The issue is because of Apple WWDRCA expired at Feb 14, 2016.
to resolve this
go to your Keychain Access, and in the menu
click View - - > Show Expired Certificates.
delete the expired Apple Worldwide Developer Relations Certificate Authority from both the login and System Keychains.
Install the renewed certificate from Apple by downloading and double click it.
restart your xcode
Clean your project and Build