The iPhone app I am developing has a strange quirk where it runs ok when xcode has launched it, but not when launched directly on the device.
我正在开发的iPhone应用程序有一个奇怪的怪癖,它在xcode启动时运行正常,但在直接在设备上启动时却没有。
I've checked the crash logs and the exception seems to be occurring in libxml2.2 in xmlParseCharData. It's quite a big xml document that is being parsed so I think that might be the problem.
我检查了崩溃日志,似乎在xmlParseCharData中的libxml2.2中发生了异常。这是一个相当大的xml文档正在被解析,所以我认为这可能是问题所在。
I tried with a smaller xml document and this was fine. So either it is the size of the document or something in the document that is causing it but the same large document is parsed ok when launched via xcode.
我尝试使用较小的xml文档,这很好。因此,无论是文档的大小还是文档中引起它的东西,但是当通过xcode启动时,同样的大文档被解析为ok。
Any ideas why this would be happening or how I might start trying to debug it?
任何想法为什么会发生这种情况或我如何开始尝试调试它?
2 个解决方案
#1
I found the problem. The app was taking too long to start. I eventually noticed in the console log in organizer that this was the problem. I changed the app so it has a proper landing screen and it works fine now.
我发现了问题。该应用程序耗时太长,无法启动。我最终在控制台登录组织者中注意到这是问题所在。我更改了应用程序,因此它有一个正确的登陆屏幕,现在工作正常。
#2
I found a Apple Technical Q&A about this issue. http://developer.apple.com/iphone/library/qa/qa2009/qa1592.html
我找到了关于这个问题的Apple技术问答。 http://developer.apple.com/iphone/library/qa/qa2009/qa1592.html
#1
I found the problem. The app was taking too long to start. I eventually noticed in the console log in organizer that this was the problem. I changed the app so it has a proper landing screen and it works fine now.
我发现了问题。该应用程序耗时太长,无法启动。我最终在控制台登录组织者中注意到这是问题所在。我更改了应用程序,因此它有一个正确的登陆屏幕,现在工作正常。
#2
I found a Apple Technical Q&A about this issue. http://developer.apple.com/iphone/library/qa/qa2009/qa1592.html
我找到了关于这个问题的Apple技术问答。 http://developer.apple.com/iphone/library/qa/qa2009/qa1592.html