5

So, I just renewed my Apple developer membership and I started getting this error "Warning unable to build chain to self signed root for signer apple Development".

I am unable to archive my apps in order to upload them to the AppStore, I tried these threads with no luck:

https://developer.apple.com/forums/thread/86161

Always 'Ad Hoc Code Signed' for Embedded Binary Signing Certificate

https://developer.apple.com/forums/thread/662300

PS: I have "this certificate is not trusted" in my Apple development and Apple Distribution certificates in the Certificates section on the keychain access. I don't know if that is related to my issue?

Taoufik
  • 482
  • 5
  • 13

2 Answers2

12

What worked for me was to download the "Apple Worldwide Developer Relations Certification Authority" that expires in 20 Feb 2030 along side with the already existent one that expires in 7 Feb 2023.

That was enough to make the "this certificate is not trusted" go away, and to let me build and archive my app again.

Taoufik
  • 482
  • 5
  • 13
  • 1
    I also download/install the new certificate and the problem was solved... here is the link to download https://developer.apple.com/support/expiration/ – idenardi Dec 14 '21 at 23:55
  • 2
    This was the solution for me doing Xamarin development on VS for Mac – Andrew Feb 02 '22 at 16:40
  • 2
    Yeah this works for Xamarin – Ali Abbas Jun 27 '22 at 21:49
  • Worked for a Unity build on my end. – starikcetin Aug 18 '22 at 17:58
  • This answer solved my problem getting the "unable to build chain to self signed root for signer" warning/error when trying to use `codesign_identity` in PyInstaller after I got a new laptop. I downloaded and installed the G3 certificate expiring 2/20/2030 in Keychain Access (in addition to adding my own certificated). – mhucka May 24 '23 at 23:17
3

I have this issue recently and I have found out that this is a problem with the OS. This solution seems like a hack but it works!

  1. Go to Xcode Preferences menu (command+,) and then Accounts tab

  2. click on the gear icon on the bottom left and Export Apple ID and Code Signing Assets... Settings

  3. Set a password for the export

⚠️ You are going to delete all passwords and profiles! Don't forget your password! Writing down your password is highly recommended.

⛔️ This file will contain all your accounts and profiles. Make sure to keep it very secure.

  1. Delete all accounts.

  2. Build and face the new error.

  3. Import them back using your password.

It's should working again now.

Mojtaba Hosseini
  • 95,414
  • 31
  • 268
  • 278
  • 1
    I tried this but did not work for me, maybe it'll work for someone else. I still get the same error. – Taoufik May 22 '21 at 16:41