iOS 9.2.1应用程序启动时崩溃

3

我的应用程序在所有版本中都很好,除了iOS 9.2.1。

当我直接从Xcode在设备上运行应用程序时,我没有在iOS 9.2.1中遇到问题。

澄清:

我猜想iOS会杀死我的应用程序,因为它消耗更多的内存,并且该应用程序由adhoc或分发证书签名。 当从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


1
这个应用是使用App Store的授权还是企业授权构建的?它是在iOS 9.2.1上出现的问题,还是只有特定设备(即在每个安装了9.2.1的设备上都会出现这个问题;还是只有一个设备)?另外,如果您再次尝试启动该应用程序(可能第三或第四次...只需不断尝试启动它),它最终会启动吗?还是无论您连续尝试多少次,它都无法启动? - hsoi
1
它说正在保存一个崩溃报告到“/var/mobile/Library/Logs/CrashReporter/myappnameSwift_2016-02-17-152800_test-iPhone-6.ips”。那里面包含了什么? - Phillip Mills
1
符号化第10帧,它可能会告诉你一些有用的信息。 数字地址列表是浪费时间。 - Phillip Mills
1
我之所以问这个问题,是因为我经常看到这个相同的SecTrustEvaluate级联和无法立即启动(有时需要2-4次启动)。在我的情况下,这是操作系统试图协调配置文件,而我有很多配置文件。我进入Xcode->窗口->设备,选择我的连接手机,底部左侧的齿轮菜单,“显示配置文件”,然后逐个删除尽可能多的配置文件。现在只有少量相关配置文件,我的企业应用程序可以快速启动。你的情况可能会有所不同。 - hsoi
1
类似的经验 - 我通过Xcode的Debug运行我的应用程序,没有问题。直接启动应用程序(企业分发配置文件)- 相同的设备 - 却无法启动。因此很可能是一个配置文件问题。我首先建议检查该设备的配置文件,如上所述删除多余的配置文件,只保留你需要的那些(而不是Xcode多年来积累的所有配置文件)。看看是否有帮助。这是我能想到的最好的方法。祝你好运。 - hsoi
显示剩余3条评论
1个回答

5
改变构架构建设置中的设置解决了我的问题。

enter image description here

将架构从$(ARCHS_STANDARD)更改为$(ARCHS_STANDARD_32_BIT)


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接