Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

App crash on iOS 4.1 device - possible workaround

Not really a question, more of a tip that seems to work for me. My app runs fine in the simulator but crashes right after the splash screen when I run on an iOS 4.1 device. The workaround seems to be this.

MobileSDK version 1.4.1 or 1.4.2 (I'm using nightly builds)

iOS 4.1 Device

iOS 4.1 SDK

Go to the build/iphone folder in your Titanium project and open the XCode project with XCode.

  • Click the Targets in the Groups and Files sidebar, right click on your app and select Get Info.
  • Change Base SDK from IOS Simulator 4.0 to IOS Simulator 4.1
  • Close the info window.
  • In project dropdown (just above the Groups and Files sidebar) select Device instead of Simulator.

Click Build and Run

Worked for me - hope it helps.

— asked September 20th 2010 by John McKnight
1 Comment
  • great tip, just what I was looking for.

    — commented November 7th 2010 by Steven Day

8 Answers

  • Yes it seems Titanium keeps creating the project with the Base SDK set to 4.0 regardless of what you are trying to do. It caused crashes for me until I realized that is what is happening. The caveat is that you need to do this whenever you try to build to the device because the project is recreated by Titanium and your changes will be overwritten.

    — answered September 20th 2010 by John McKnight
    permalink
    0 Comments
  • I'm still unable to get the app running on iPhone. It is crashing at the splash screen. Followed the same steps and still it is not working. When I select the option to build and run on the device, it works fine in the debug mode. After that, when I close and reopen the app on the phone, it crashes at the splash screen.

    Thanks,

    — answered September 20th 2010 by Sravan Vinjamuri
    permalink
    0 Comments
  • I think I love you

    — answered October 15th 2010 by michael ruddy
    permalink
    0 Comments
  • Nice one mate.

    — answered September 20th 2010 by Critter
    permalink
    0 Comments
  • This worked for me as well, on iPad 4.2 beta… Thanks! I am running the Hello World right now, but do you know why it takes like 5 seconds to load the tabs (stuck in the splash screen)?

    — answered September 20th 2010 by Ricardo Arguello
    permalink
    1 Comment
    • its only in the debug mode, when you start from Xcode

      — commented September 21st 2010 by Carl Jahn
  • so is it really just that it has the wrong targed base sdk for 4.1? if so that would be a great fix.

    — answered September 20th 2010 by danno watts
    permalink
    0 Comments
  • Glad to know I wasn't the only one experiencing this problem. I'll give that a try!

    — answered September 20th 2010 by Chris Dotson
    permalink
    0 Comments
  • Sorry. Accidental double post

    — answered September 20th 2010 by John McKnight
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.