Warning: unable to build chain to self-signed root for signer "Apple Distribution: BV (38A746H35J)"

Hi,

I made a Xamarin.Forms app and now I want upload the iOS version of this app to Apple TestFlight (eventually to the App Store). I'm doing this from Visual Studio in Windows, but I'm connected to a mac.

However, as soon as I click on Distribute -> App Store, I get the following error:

Failed to codesign 'bin/iPhone/Debug/Frontend.iOS.app': Warning: unable to build chain to self-signed root for signer "Apple Distribution: BV (38A746H35J)"

This also happens when I build the project.

According to Visual Studio, both the certificate and provisioning profile are valid. However, the certificates that are installed on the mac show by default an "certificate not trusted" error. This goes away when I double click the certificate and set it to "Always Trust"

What can I do to fix this problem? Thanks in advance!

A few things I tried:
  • Manually instaling the WWDR Certificate on the mac.

  • Manually removing and adding the certificates

  • Setting all certificates to "Always trust"

  • Setting all certificates to "Use System Defaults"

  • Update xcode

I have the same issue, I deleted all my objetcs (identifiers, certificates and profiles) and re-created them without success. Using a old MacBook Pro it was work fine, but I have a new one but I've spent a few days fighting with the same error.

Apple every time complicating everything...

  • Manually instaling the WWDR Certificate on the mac.

Check that you have installed the right WWDR intermediate. More on this below.

  • Setting all certificates to "Always trust"

Don’t do that.

  • Setting all certificates to "Use System Defaults"

Do do this.

I discuss this issue in detail, in a somewhat different context, in my Resolving errSecInternalComponent errors during code signing post.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Warning: unable to build chain to self-signed root for signer "Apple Distribution: BV (38A746H35J)"
 
 
Q