Not sure if Circle-ci has tried to address this issue but I am currently having issues for the last 24 hours, narrowed it down to the old WWDRA cert still being on the server.
When I tried deleting and manually downloading the latest WWDR using a suggestion online: security delete-certificate -c "Apple Worldwide Developer Relations Certification Authority" /Library/Keychains/System.keychain
I got security: "Apple Worldwide Developer Relations Certification Authority" is ambiguous, matches more than one certificate
Which shows its still there somehow…
----- EDIT -----
This fixes it: sudo security delete-certificate -Z 0950B6CD3D2F37EA246A1AAA20DFAADBD6FE1F75 /Library/Keychains/System.keychain
(credits o @adrienbraulthttps://github.com/travis-ci/travis-ci/issues/5633)
Ok well maybe it’s something different… but I just tried removing the line that deletes the old cert sudo security delete-certificate -Z 0950B6CD3D2F37EA246A1AAA20DFAADBD6FE1F75 /Library/Keychains/System.keychain
and I got this error:
Looks like there are no local code signing identities found, you can run `security find-identity -v -p codesigning` to get this output. Check out this reply for more: https://stackoverflow.com/questions/35390072/this-certificate-has-an-invalid-issuer-apple-push-services
I switched to use Xcode 7 and this went away. I believe its actually caused by Xcode 8’s automatic code signing functionality. If you disable that in your project you may have some luck