Since iOS 9 I've been seeing slow launch times with our application, to the point where users will have to launch it multiple times in a row just to get it to stay in the foreground.
What's interesting is that once it's been loaded into the foreground, it's usually not a problem to continue using the application after that.
We use enterprise distribution to allow employees to test the application before we ship to the app store. After dumping the console while having my device plugged into my computer, I saw my phone continually outputting these messages into the log, until the app ultimately timed out from the watchdog.
securityd[11300] <Error>: secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found securityd[11300] <Error>: secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found amfid[11381] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
These same errors will repeat in blocks about 20 or so times in the console. When the application does eventually launch, these messages are not present. Additionally, these log messages are not present when launching the App Store version of the very same application, but are present in TestFlight versions of the binary.
I've verified my profiles and entitlements files following steps hereand am now at a loss. I would love some help with this as it's hindering some of our internal users from even running the application.