.NET MAUI - iOS: Warning: unable to build chain to self-signed root for signer iPhone Distribution

At the moment I'm building a .NET Maui App for iOS and Android devices. For iOS it is necessary to have a valid certificate installed on the remote MAC machine. Because building native iOS applications using .NET Multi-platform requires access to Apple's build tools, which only run on a Mac 🙄. As I started with the developing I was not sure to buy a Mac just for this process but at the end it is worth to have a pysical macOS machine (note: a Mac mini is for the building process enought). The integration in the building process inside Visual Studio 2022 is very good. As soon the Mac machine is available in the local network it is very easy to connect to the machine within Visual Studio. The following screenshot shows the responsible dialog to establish a remote connection to the macOS machine.

Connect to a Mac

But - of course - not the whole building process ran smooth. During my first try to build the iOS version of my App I was presented with the following error message:

Warning: unable to build chain to self-signed root for signer "iPhone Distribution: DevCertificate (*****)" /Users/devuser/Documents/repos/...app-MAUI/my.App.App/bin/Release/net8.0-ios/ios-arm64/App.App.app: errSecInternalComponent

In my case the certificate Apple Worldwide Developer Relations Certification Authority was expired and not useable. The Apple keychain told my: this certificate is not trusted. To solve this just go to the site Apple PKI and download the latest suitable Worldwide Developer Relations certificate.

After installation the certificate is valid and useable for the building process.

Happy building again 😊

Kommentare

Beliebte Posts aus diesem Blog

Exchange Online: Schutzregel für E-Mail Weiterleitung

Connect-SPOService: The remote server returned an error: (400) Bad Request

Vertikaler Bereich deaktiviert