"Warning: unable to build chain to self-signed root for signer" warning in Xcode 9.2
Solution 1:
If none of the other solutions work, try adding the intermediate signing certificates to your system keychain. I found this while trying to manually create provisioning profile/certificates as nothing else was working - from the Create a New Certificate step of the New Provisioning Profile process on Apple Developer platform:
To use your certificates, you must have the intermediate signing certificate in your system keychain. This is automatically installed by Xcode. However, if you need to reinstall the intermediate signing certificate click the link below: Worldwide Developer Relations Certificate Authority (Expiring 02/07/2023) Worldwide Developer Relations Certificate Authority (Expiring 02/20/2030)
After downloading these two files and double-clicking them to automatically add to the system keychain, the automatic provisioning profile in xcode started working (I didn't need to complete the manual provisioning profile process, but that's where I found the links)
Solution 2:
I had the same problem and fixed with below steps:
- Open Keychain Access
- Select login, and click Certificates
- Double click Apple Worldwide Developer Relations Certificate Authority
- Open trust section, and set to "Use System Defaults" from "Always Trust"
- Clean the build folder and run
Solution 3:
I could fix the issue by downloading a new certificate from here and installing it. Look at https://developer.apple.com/de/support/expiration/ for more detail.