Reputation: 32270
My app works fine in all the versions except iOS 9.2.1
When I run the app on device directly from Xcode I am not experiencing the problem in iOS 9.2.1
Clarification:
I guess iOS kills my app because its consuming more memory and the app is signed by ad-hoc or distribution certificate. when running from xcode I am not facing the problem because its signed by developer certificate and so iOS not kills the app and lets it run
Here is the device log that I got from xcode devices while launching the app
Feb 17 15:27:58 test-iPhone-6 SpringBoard[58] : SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Feb 17 15:27:59 test-iPhone-6 SpringBoard[58] : SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found Feb 17 15:27:59 test-iPhone-6 amfid[168] : SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Feb 17 15:27:59 test-iPhone-6 kernel[0] : xpcproxy[365] Container: /private/var/mobile/Containers/Data/Application/E0E7AB14-7B51-4B34-8CAE-5A31D96CF800 (sandbox)
Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Feb 17 15:27:59 test-iPhone-6 amfid[168] : SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Feb 17 15:27:59 test-iPhone-6 amfid[168] : SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found Feb 17 15:27:59 test-iPhone-6 amfid[168] : SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Feb 17 15:27:59 test-iPhone-6 amfid[168] : SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Feb 17 15:27:59 test-iPhone-6 amfid[168] : SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Feb 17 15:27:59 test-iPhone-6 amfid[168] : SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Feb 17 15:27:59 test-iPhone-6 amfid[168] : SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Feb 17 15:27:59 test-iPhone-6 amfid[168] : SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Feb 17 15:27:59 test-iPhone-6 amfid[168] : SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Feb 17 15:27:59 test-iPhone-6 amfid[168] : SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Feb 17 15:27:59 test-iPhone-6 amfid[168] : SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found Feb 17 15:27:59 test-iPhone-6 amfid[168] : SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName] Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Feb 17 15:27:59 test-iPhone-6 amfid[168] : SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName] Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Feb 17 15:27:59 test-iPhone-6 amfid[168] : SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Feb 17 15:27:59 test-iPhone-6 amfid[168] : SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Feb 17 15:27:59 test-iPhone-6 amfid[168] : SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Feb 17 15:27:59 test-iPhone-6 securityd[91] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Feb 17 15:27:59 test-iPhone-6 amfid[168] : SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Feb 17 15:28:00 test-iPhone-6 SpringBoard[58] : BSXPCMessage received error for message: Connection invalid
Feb 17 15:28:00 test-iPhone-6 SpringBoard[58] : HW kbd: Failed to set (null) as keyboard focus
Feb 17 15:28:00 test-iPhone-6 mediaserverd[28] : '' com.test.myappname(pid = 365) setting DiscoveryMode = DiscoveryMode_None, currentDiscoveryMode = DiscoveryMode_None
Feb 17 15:28:00 test-iPhone-6 diagnosticd[83] : error evaluating process info - pid: 365, puniqueid: 365
Feb 17 15:28:00 test-iPhone-6 SpringBoard[58] : BSXPCMessage received error for message: Connection invalid
Feb 17 15:28:00 test-iPhone-6 com.apple.xpc.launchd[1] (UIKitApplication:com.test.myappname[0x632d][365]) : Service exited due to signal: Segmentation fault:
11 Feb 17 15:28:00 test-iPhone-6 ReportCrash[366] : Formulating report for corpse[365] myappnameSwift
Feb 17 15:28:00 test-iPhone-6 ReportCrash[366] : saved type '109_myappnameSwift' report (5 of max 25) as /var/mobile/Library/Logs/CrashReporter/myappnameSwift_2016-02-17-152800_test-iPhone-6.ips
Feb 17 15:28:00 test-iPhone-6 SpringBoard[58] : Application 'UIKitApplication:com.test.myappname[0x632d]' crashed.
Feb 17 15:28:00 test-iPhone-6 UserEventAgent[26] : 289017674762: id=com.test.myappname pid=365, state=0
Upvotes: 3
Views: 1020
Reputation: 32270
Changing the Architectures in Build Settings solved my problem
Changed the architecture from $(ARCHS_STANDARD) to $(ARCHS_STANDARD_32_BIT)
Upvotes: 5