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