Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23824] iOS: Using animationStyle will cause the app to crash

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2016-08-24T23:22:02.000+0000
Affected Version/sRelease 6.0.0, Release 5.4.0, Release 5.5.0
Fix Version/sRelease 5.5.0
ComponentsiOS
Labelsqe-5.5.0
ReporterAngel Petkov
AssigneeAngel Petkov
Created2016-08-24T23:20:05.000+0000
Updated2016-08-26T16:37:31.000+0000

Description

var win1 = Ti.UI.createWindow({
    backgroundColor: 'blue',
    title: 'Blue'
});
win1.add(Ti.UI.createLabel({text: 'I am a blue window.'}));

var win2 = Ti.UI.createWindow({
    backgroundColor: 'red',
    title: 'Red'
});
win2.add(Ti.UI.createLabel({text: 'I am a red window.'}));

var tab1 = Ti.UI.createTab({
    window: win1,
    title: 'Blue'
}),
tab2 = Ti.UI.createTab({
    window: win2,
    title: 'Red'
}),
tabGroup = Ti.UI.createTabGroup({
    tabs: [tab1, tab2]
});
tabGroup.open({transition:Titanium.UI.iOS.AnimationStyle.FLIP_FROM_LEFT });
*Expected Result:* * App boots with a transition animation flip from left. *Actual Result* * App will crash

Comments

  1. Angel Petkov 2016-08-24

    Master: https://github.com/appcelerator/titanium_mobile/pull/8258 6.0.X: https://github.com/appcelerator/titanium_mobile/pull/8258 Possible backport: https://github.com/appcelerator/titanium_mobile/pull/8259
  2. Josh Longton 2016-08-26

    Verified as fixed, using the GA stack the application errors with a build error not a crash: {noformat} [ERROR] : ** BUILD FAILED ** [ERROR] : The following build commands failed: [ERROR] : CompileC build/Intermediates/TIMOB-23824-2.build/Debug-iphoneos/TIMOB-23824-2.build/Objects-normal/armv7/TiUIiOSProxy.o Classes/TiUIiOSProxy.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler [ERROR] : (1 failure) {noformat} Tested on {noformat} iPhone 6 plus (9.3.4) iPhone 6 (10.0) 
Mac OSX El Capitan 10.11.6 
Appc NPM: 4.2.7 Studio: 4.7.1.201608190732 SDK: 5.5.0.v20160825003900 Appc CLI: 5.5.0-5 Xcode 7.3.1/xcode 8 beta 4 Node: v4.4.7 {noformat} *Closing ticket*

JSON Source