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.
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.
-
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,
-
I think I love you
-
Nice one mate.
-
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)?
-
so is it really just that it has the wrong targed base sdk for 4.1? if so that would be a great fix.
-
Glad to know I wasn't the only one experiencing this problem. I'll give that a try!
-
Sorry. Accidental double post