App was fine, now fails to launch 1st time with Xcode 7.1

I'm still on Xcode 7.1 beta 3 (and can't change yet, client stipulation) but...


My formerly fine app under Xcode 7.0 fails to run first time on simulators or devices. It shows the Launch Image and then exits. The entry point of the app is never hit.


The Devices window log output shows the following. There's something early on about Music Library refusing a client, and there's a bunch of "MISSING keychain entitlements" stuff. This seems bad, but I can't tell what it is. This app only has the entitlement for background audio. It is using a developer profile managed by Xcode.


Note that the app *does* run if started again manually, just never when Xcode tries to start it. What have I done wrong?!


Oct 24 21:40:52 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:52 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:52 Marcs-iPhone-6S amfid[210] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Oct 24 21:40:52 Marcs-iPhone-6S tccd[109] <Notice>: Refusing client without bundle identifier (/System/Library/PrivateFrameworks/MusicLibrary.framework/Support/medialibraryd)
Oct 24 21:40:52 Marcs-iPhone-6S tccd[109] <Notice>: Refusing client without bundle identifier (/System/Library/PrivateFrameworks/MusicLibrary.framework/Support/medialibraryd)
Oct 24 21:40:52 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:52 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:52 Marcs-iPhone-6S amfid[210] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Oct 24 21:40:52 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:52 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:52 Marcs-iPhone-6S amfid[210] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Oct 24 21:40:52 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:52 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:52 Marcs-iPhone-6S amfid[210] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Oct 24 21:40:52 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:52 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:52 Marcs-iPhone-6S amfid[210] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Oct 24 21:40:52 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:52 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:52 Marcs-iPhone-6S amfid[210] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Oct 24 21:40:52 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:52 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:52 Marcs-iPhone-6S amfid[210] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Oct 24 21:40:52 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:52 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:52 Marcs-iPhone-6S amfid[210] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Oct 24 21:40:52 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:52 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:52 Marcs-iPhone-6S amfid[210] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Oct 24 21:40:52 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:52 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:52 Marcs-iPhone-6S amfid[210] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Oct 24 21:40:52 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:52 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:52 Marcs-iPhone-6S amfid[210] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Oct 24 21:40:52 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:52 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:52 Marcs-iPhone-6S amfid[210] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Oct 24 21:40:52 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:52 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:52 Marcs-iPhone-6S amfid[210] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Oct 24 21:40:52 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:52 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:52 Marcs-iPhone-6S amfid[210] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Oct 24 21:40:52 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:52 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:52 Marcs-iPhone-6S amfid[210] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Oct 24 21:40:52 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:52 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:52 Marcs-iPhone-6S amfid[210] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Oct 24 21:40:52 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:52 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:52 Marcs-iPhone-6S amfid[210] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Oct 24 21:40:53 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:53 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:53 Marcs-iPhone-6S amfid[210] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Oct 24 21:40:53 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:53 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:53 Marcs-iPhone-6S amfid[210] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Oct 24 21:40:53 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:53 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:53 Marcs-iPhone-6S amfid[210] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Oct 24 21:40:53 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:53 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:53 Marcs-iPhone-6S amfid[210] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Oct 24 21:40:53 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:53 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:53 Marcs-iPhone-6S amfid[210] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Oct 24 21:40:53 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:53 Marcs-iPhone-6S securityd[94] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Oct 24 21:40:53 Marcs-iPhone-6S amfid[210] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Oct 24 21:40:53 Marcs-iPhone-6S com.apple.xpc.launchd[1] (UIKitApplication:co.montanafloss.SoundproofDev[0xddbd][1121]) <Warning>: Service exited with abnormal code: 45
Oct 24 21:40:53 Marcs-iPhone-6S com.apple.debugserver-@(#)PROGRAM:debugserver  PROJECT:debugserver-340.3.51.1
  [1120] <Warning>: 1 +0.000000 sec [0460/1107]: error: ::read ( -1, 0x16e246a38, 1024 ) => -1 err = Bad file descriptor (0x00000009)
Oct 24 21:40:53 Marcs-iPhone-6S com.apple.debugserver-@(#)PROGRAM:debugserver  PROJECT:debugserver-340.3.51.1
  [1120] <Warning>: Exiting.
Oct 24 21:40:53 Marcs-iPhone-6S SpringBoard[61] <Warning>: Unable to get short BSD proc info for 1121: No such process
Oct 24 21:40:53 Marcs-iPhone-6S SpringBoard[61] <Warning>: Unable to get short BSD proc info for 1121: No such process
Oct 24 21:40:53 Marcs-iPhone-6S SpringBoard[61] <Warning>: Unable to get short BSD proc info for 1121: No such process
Oct 24 21:40:53 Marcs-iPhone-6S SpringBoard[61] <Warning>: Application 'UIKitApplication:co.montanafloss.SoundproofDev[0xddbd]' exited voluntarily.

Same problem on my devices (iPhone and iPad) for the app compiled by xCode 7.1, run on iOS9.1, installed via TestFlight. Any solutions?

Not yet. I have no idea why this is happening.

We're getting the same thing here starting a couple days ago on all of our in-house enterprise applications. Everything crashes right on launch. This includes debugging on simulators, applications that are already installed on devices and have been unchanged, and newly deployed applications directly onto devices (Skipping the apache server). Hopefully someone can help use out.


Have you figured out what was going on?


The XCode console on all applications:


Oct 30 09:16:08 Ryan-S-iPad securityd[83] <Error>: secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found

Oct 30 09:16:08 Ryan-S-iPad securityd[83] <Error>: secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found

Oct 30 09:16:08 Ryan-S-iPad amfid[228] <Error>: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]

Oct 30 09:16:08 Ryan-S-iPad amfid[228] <Error>: /private/var/mobile/Containers/Bundle/Application/2F5EF068-0550-4BF9-A671-FBCF172E4181/JBGReception.app/JBGReception not valid: 0xe8008015: A valid provisioning profile for this executable was not found.

Oct 30 09:16:08 Ryan-S-iPad com.apple.xpc.launchd[1] (UIKitApplication:com.jbg.jbgreception[0xcec9][325]) <Notice>: Service exited due to signal: Killed: 9

At one of our Enterprise customers, we had the "Refusing client without bundle identifier" message in our device logs. We had also seen the issue where, with iOS 9, the user has to "re-trust" the provisioning profile.


We were using the ipa/plist/itms-services web server method of download, and the users were getting the "Unable to Download at this time" message.


We also tried installing the ipa through iTunes (which is where we got the "refusing client" message.


The solution is apparently to delete the Enterprise provisioning profile (which deletes all of the apps associated with this profile) and re-install. This appears to kickstart the trust dialog again.


A real pain in the butt for the users, but it does appear to fix the issue.

App was fine, now fails to launch 1st time with Xcode 7.1
 
 
Q