iOS 9.2.1 应用启动时崩溃
iOS 9.2.1 app crash on launch
我的应用程序在除 iOS 9.2.1
以外的所有版本中都运行良好
当我 运行 设备上的应用程序直接来自 Xcode 我在 iOS 9.2.1[= 中没有遇到问题12=]
澄清:
我猜 iOS 杀死了我的应用程序,因为它消耗更多内存并且该应用程序是由临时证书或分发证书签名的。
当 运行ning 来自 xcode 我没有遇到问题,因为它是由开发者证书签名的,所以 iOS 不会杀死应用程序并让它 运行
这是我在启动应用程序时从 xcode devices 获得的设备日志
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
正在构建设置[=26=中更改架构 ]解决了我的问题
将架构从 $(ARCHS_STANDARD) 更改为 $( ARCHS_STANDARD_32_BIT)
我的应用程序在除 iOS 9.2.1
以外的所有版本中都运行良好当我 运行 设备上的应用程序直接来自 Xcode 我在 iOS 9.2.1[= 中没有遇到问题12=]
澄清:
我猜 iOS 杀死了我的应用程序,因为它消耗更多内存并且该应用程序是由临时证书或分发证书签名的。 当 运行ning 来自 xcode 我没有遇到问题,因为它是由开发者证书签名的,所以 iOS 不会杀死应用程序并让它 运行
这是我在启动应用程序时从 xcode devices 获得的设备日志
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
正在构建设置[=26=中更改架构 ]解决了我的问题
将架构从 $(ARCHS_STANDARD) 更改为 $( ARCHS_STANDARD_32_BIT)