Xcode ios app development code signing

后端 未结 8 1209

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:38

    You are using Distribution certificate instead of Development Certificate if you are able to install app in debug mode but it closes automatically once installation completed.

    0 讨论(0)
  • 2020-12-10 18:38

    One of the way to resolve IOS Codesigning issue is follow following Document.

    iOS Code Signing Troubleshooting

    And Run the following command to know the excact issue

    spctl -a -t exec -vv <app-path>
    

    One More Tip

    After changing anything in system always clean & build your project to know if solution got applied successfully or not.

    0 讨论(0)
  • 2020-12-10 18:39

    In my case,

    1- Open Keychain Access

    2- Select login, and click Certificates

    3- Double click Apple Worldwide Developer Relations Certificate Authority

    4- Open trust section, and set to "Use System Defaults" from "Always Trust"

    5- Clean build folder and run

    0 讨论(0)
  • 2020-12-10 18:47

    I too had the same error unable to build chain to self-signed root for signer...

    My mistake was that I had changed the trust setting of my distribution / developer cert to always trust. When I changed it back to Use system Default it all worked.

    0 讨论(0)
  • 2020-12-10 18:47

    It is also important to note that the physical device you are trying to deploy to must be listed in the allowed devices list for that provisioning profile -> you can see this here in the tooltip that pops up from your cert information -> you want to make sure that your device is listed in the "Devices" section.

    You can add / remove devices when you create the provisioning profile on the apple developer portal website.

    Cert popup

    0 讨论(0)
  • 2020-12-10 18:48
    1. Change your trust settings of your developer certificate in keychain access to system default
    2. Delete all certificates in your local keychain
    3. Quit and relaunch xcode
    4. Clean
    5. Run program on device
    6. When it asks, enter your keychain password and click always trust

    The issue could be having your certificate set to always trust, that's the issue I had. If you're getting this warning that stops you from running apps on your device, this should fix everything.

    0 讨论(0)
提交回复
热议问题