Fabric Plugin: Archive Packaging Error: -6 Error re-signing the application for distribution

google-fabric

Solution

I just had this issue due to removing all my certificates in my Keychain due to signing issues with Xcode.

To solve this, I went into Xcode -> Preferences -> and looked through the accounts added (I have to for this Mac) and made sure that I had the right certificates (checked which ones were needed by them being greyed out).

Using the last line (in this case for the question, it will look different):

937558639C8878BB6E161112505FA2965804A6AE: no identity found

I was able to figure out which certificate was needed via hovering the mouse over the greyed out certificates (I wish it wasn't so hidden!), anyways that solved it for me, hopefully it can help others who have this issue.

So just to iterate, I went onto the apple developer account website -> "Certificates, Identifiers & Profiles" and proceeded to download the certificate that way, despite having auto signing enabled I still had to do this.

Problem

When I try to upload a new build using the Fabric Plugin I get the following error: Archive Packaging Error: -6 Error re-signing the application for distribution. ``` /usr/bin/codesign --sign 937558639C8878BB6E161112505FA2965804A6AE --all-architectures --force --entitlements /var/folders/xf/l7r1f0m54mjbwd9c3myd88zw0000gn/T/com.crashlytics.ipas/A6C80578-CC0E-443D-B81C-C10E972E88F8/Payload/entitlements.xml /var/folders/xf/l7r1f0m54mjbwd9c3myd88zw0000gn/T/com.crashlytics.ipas/A6C80578-CC0E-443D-B81C-C10E972E88F8/Payload/ShowGo.app 937558639C8878BB6E161112505FA2965804A6AE: no identity found ``` It used to work until the last version of the app. And then for some reason it just stopped working. Here's what I've tried: - Clean / Rebuild / Archive (many times) - Uninstall / reinstall Fabric plugin - Re-download provisioning profiles - Change from automatic to manual signing - Searching for missing code signing identity (> security find-identity -p codesigning) What's killing me is I can't figure out for the life of me where Fabric is pulling that codesign identity value (937558639C8878BB6E161112505FA2965804A6AE) from. It's not in the project as I've grepped for it. Could it be cached somewhere else?

Original source

Related problems