Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 926
Funktional Avatar asked May 12 '17 22:05

Funktional


2 Answers

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.

like image 142
Mark Manson Avatar answered Sep 28 '22 14:09

Mark Manson


I've had the same issue.

enter image description here

It's because your developer account is prolongated and Provision Profiles are invalid.

enter image description here

You need to go to the developer.apple.com and update your Provision Profiles. Then download them, delete old Provision Profiles from Xcode, and tap to the new Profiles for add it to the Xcode! It helped me!

like image 25
K. Sergey Avatar answered Sep 28 '22 16:09

K. Sergey