Search code examples
iosxcodeprovisioning-profilecode-signing-certificate

App freezes with SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName] Error


When I deploy and start my app it freezes on a white screen and I see the following errors in my device log:

Jun  7 11:21:42 device-inno10 profiled[130] <Notice>: (Note ) MC: Provisioning profiles changed
Jun  7 11:21:42 device-inno10 profiled[130] <Notice>: (Note ) MC: Updating MIS trust...
Jun  7 11:21:42 device-inno10 installd[50] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Jun  7 11:21:50 device-inno10 installd[50] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Jun  7 11:21:57 device-inno10 installd[50] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Jun  7 11:22:05 device-inno10 installd[50] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Jun  7 11:22:12 device-inno10 installd[50] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Jun  7 11:22:20 device-inno10 installd[50] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Jun  7 11:22:27 device-inno10 installd[50] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Jun  7 11:22:35 device-inno10 syslogd[25] <Notice>: ASL Sender Statistics
Jun  7 11:22:35 device-inno10 installd[50] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Jun  7 11:22:42 device-inno10 installd[50] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Jun  7 11:22:50 device-inno10 installd[50] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]

Sometimes it stays frozen so long that the app is not able to start at all. I have the same issue on all my devices, even the newer ones.

In the Apple Dev Forum it was suggested to delete all provisioning profiles from the device however that didn't work for me. Does anybody know how I can fix this?


Solution

  • It turned out that iOS makes HTTP calls to the akamai and the Apple network, that execute randomly and / or specifically before any app starts.

    Following URLs are called with HTTP:

    Because I am developing in a high security environment, we block HTTP calls on our firewall and therefore the HTTP calls ran into a timeout. This in turn caused a very slow app which took about 10 seconds.

    After modifying the firewall rules to allow these 2 calls - everything works as expected again.