Xcode ios app development code signing

后端 未结 8 1210

When I run my app into my iphone I have this Warning:

unable to build chain to self-signed root for signer \"\".

My application Installed

相关标签:
8条回答
  • 2020-12-10 18:49

    I had the same problem and basically did like posted in the comment:

    • Remove my account at Xcode / Preferences at the top right.
    • open keychain. At the left "my certificates": Delete the Mac or iPhone etc Developer certificate.
    • just starting Xcode again and creating a new account like one did when starting Xcode for the first time.
    0 讨论(0)
  • 2020-12-10 18:52

    I saw other answers and attempted to delete my intermediate keychains and root certificate. But Apple doesn't allow to remove Root certs unless you're in recovery mode and I didn't want to try that. Likely you don't have to delete anything either as this solution works without it.

    I just thought I'd add an image to clarify things. I ran into this issue when I was poking around in my Keychain and accidentally changed the default settings.

    Identifying the bad certificate:

    1. From you Keychains select Login
    2. From Category select Certificates
    3. Find any Apple Certificate that has the blue + like
    4. Double click on the certificate. You'll see it look like this

    1. Expand the Trust. You'd see something like this:

    1. If it's messed up then the "When using this certificate" is set to "Always Trust" along with the blue

    Fixing the bad certificate:

    1. Just set it to "Use System Defaults" and close it.
    2. You'll get a pop up. Type in your password to update settings.
    3. Close KeyChain. Go back to your project, clean and run. Problem should have gone away.
    4. If that didn't work then go back to Keychain and just double check and see if there are any other Apple certificates that are set to Always Trust and repeat the process.
    0 讨论(0)
提交回复
热议问题