4

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.

Community
  • 1
  • 1
Arun Kumar
  • 788
  • 5
  • 15
  • 1
    Same issue also here: http://stackoverflow.com/questions/35390072/this-certificate-has-an-invalid-issuer-apple-push-services. – Martin R Feb 17 '16 at 07:47

1 Answers1

7

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.

  • under System you can see like your certificate is expired

enter image description here

  • Install the renewed certificate from Apple by downloading and double click it.

    Your keychain should show like that

  • restart your xcode

  • Clean your project and Build

Anbu.Karthik
  • 82,064
  • 23
  • 174
  • 143
  • Thanks you have just saved one life. I am really gonna die.. But hurray .. I am alive now.. Thanks a ton. – Arun Kumar Feb 17 '16 at 06:59
  • That's what I was thinking. Some days ago, everything was working fine . Suddenly this started But you have just saved me . But how come you figured out this solution? Bro. I really wanna know – Arun Kumar Feb 17 '16 at 07:03