Reputation: 3696
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.
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.
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.
Any ideas why this would be happening or how I might start trying to debug it?
Upvotes: 2
Views: 1020
Reputation: 103
I found a Apple Technical Q&A about this issue. http://developer.apple.com/iphone/library/qa/qa2009/qa1592.html
Upvotes: 0
Reputation: 3696
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.
Upvotes: 4