Home > iPhone Dev > iPhone App Crashes on Device but Runs Fine in Simulator

iPhone App Crashes on Device but Runs Fine in Simulator

This was weird today. My iPhone app was crashing when I ran it, and it crashed for some other people (but not for everyone). This was right after a new JSON was being loaded by the application. So I got into xCode and ran it on my emulator. It worked fine. I hooked up xCode to my iPod Touch and ran the application to the iPod. Sure enough it was crashing like crazy. I spent 3 hours trying to fix a phantom memory problem. I still haven’t fixed it, but I learned one thing. Restart your device, and the problem is “solved”. I put that in quotes because I’m sure it will rear its ugly head again if not identified and fixed correctly, but that was a temporary fix that tells me it must be some kind of memory issue. I’ll post later (or comment) if I discover the true root of this.

About Brad

Brad is a tech professional and hobbiest. He's a husband, father, and a Mormon. Connect with Brad on Google+

Share
Categories: iPhone Dev Tags: , ,
  1. admin
    March 29th, 2010 at 08:41 | #1

    Just a quick update: Someone had uploaded a 2.4MB image onto the server that the mobile app was loading and showing on the main screen. The image was making the app crash, even though it ran fine in the emulator. We just had to compress the image and the problem went away…

  1. No trackbacks yet.