iOS - 2.1.3 GA SDK - App crashes when using NavigationGroup

You must Login before you can answer or comment on any questions.

Hi all,

I updated to the official 2.1.3 GA and now my app crashes when trying to start my app in Simulator. It was working fine when using 2.1.3.v20120918170114.

Here's the example code

app.js

var win1 = Titanium.UI.createWindow({
    backgroundColor: 'white',
    url: 'test.js'
});
 
win1.open();
test.js
var win = Ti.UI.createWindow({backButtonTitle: 'Back'});
win.open();
 
var navigation = Ti.UI.iPhone.createNavigationGroup({window: win});
Ti.UI.currentWindow.add(navigation);
The simulator does not crash when removing the last line Ti.UI.currentWindow.add(navigation);.

Tried it with Xcode 4.4, then updated to Xcode 4.5 whether this fixes the issue. This is not the case. Also tried with adding min-ios-ver to tiapp.xml without success. Having a look at xcode-select tells me that Xcode is installed on the boot partition. Also tried it with iOS SDK 5.1 and 6.0.

Having a look at the log it says Job appears to have crashed: Segmentation fault: 11. I'm not sure but I think this should be the corresponding log: http://pastebin.com/r7VgLRRg

Environment

  • Mac OS X 10.8.2
  • XCode Version 4.5.1 (4G1004)
  • Titanium Mobile SDK (2.1.3.GA.15997d0)
  • iPhone SDK version: 6.0
  • iPhone simulated device: iphone
  • Performing full rebuild. This will take a little bit. Hold tight...
  • Skipping JS compile, running from simulator
  • Minimum iOS version: 4.3 Linked iOS Version 6.0

1 Answer

Accepted Answer

why you call win.open(); in your test.js? it's a part of navGroup and does not need to be opened manually. Try to remove it, probably the navGroup is trying to open it the 2nd time.

— answered 8 months ago by Alexander Bauer
answer permalink
1 Comment
  • Doh! That's it. Thank you so much! Never thought about it cause it was always working that way.

    — commented 8 months ago by Jicks Steen

Your Answer

Think you can help? Login to answer this question!