2.1.3 rc2 error - tab group

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

sdk 2.1.3 rc2 ,xcode 4.5 ,iphone 5 simulator ,osx 10.8

This block of code is causing the application to exit on build using 2.1.3 rc2.

This same code works fine on 2.1.3 rc1.

Thanks for any help in advance...

function pub(args) {
 
    var theme = require('theme');
    var config = require('config');
    var win = Ti.UI.createWindow(args);
 
    var tabGroup = Titanium.UI.createTabGroup({
        bottom : -50
    });
 
    var winHome = Ti.UI.createWindow({
        url : '/views/home.js',
        navBarHidden : true,
        tabBarHidden : true,
        title : config.AppName,
        barColor : theme.BarColor,
        backgroundImage : theme.SplashImage,
        layout : 'vertical',
 
    });
 
    var tabHome = Ti.UI.createTab({
        window : winHome
    });
 
    tabGroup.addTab(tabHome);
 
    tabGroup.tabBarVisible = false;
 
    tabGroup.setActiveTab(0);
 
    win.add(tabGroup);
 
    tabGroup.open();
 
    return win;
 
}
 
module.exports = pub;

— asked 8 months ago by Keith Tucci
2 Comments
  • Missing from your question are a number of important pieces of information. I suggest you take a look at the Using Questions and Answers article, specifically the Q&A Question Checklist. The missing information is critical to reproducing problems in a test environment and often indicates other factors that cause the undesirable outcome you are experiencing.


    Really need to see some logs to be able to track this down.

    — commented 8 months ago by Stephen Feather

  • Sorry, just figured this was a known a issue.

    iOS SDK 6.0 ,Ti Studio 2.1.2.201208301612

    Console

    [INFO] One moment, building ...
    [INFO] Titanium SDK version: 2.1.3 (09/27/12 18:16 a59dbdb)
    [INFO] iPhone Device family: iphone
    [INFO] iPhone SDK version: 6.0
    [INFO] iPhone simulated device: iphone
    [INFO] Minimum iOS version: 4.3 Linked iOS Version 6.0
    [INFO] Launching application in Simulator
    [INFO] Launched application in Simulator (4.67 seconds)
    [INFO] Application has exited from Simulator
    Build.log
    ================================================================================
    Appcelerator Titanium Diagnostics Build Log
    The contents of this file are useful to send to Appcelerator Support if
    reporting an issue to help us understand your environment, build settings
    and aid in debugging. Please attach this log to any issue that you report.
    ================================================================================
     
    Starting build at 09/28/12 20:59
     
    Build details:
     
       timestamp=09/27/12 18:16
       module_apiversion=2
       version=2.1.3
       githash=a59dbdb
     
     
    Script arguments:
       /Users/keithtucci/Library/Application Support/Titanium/mobilesdk/osx/2.1.3.v20120927181611/iphone/builder.py
       simulator
       6.0
       /Users/keithtucci/Workspaces/titanium/Cherry
       com.keithtucci.cherry
       Cherry
       iphone
       iphone
     
     
    Building from: /Users/keithtucci/Library/Application Support/Titanium/mobilesdk/osx/2.1.3.v20120927181611/iphone
    Platform: Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64
     
    Xcode path is: /Applications/Xcode.app/Contents/Developer
     
     
    githash=a59dbdb, existing_git_hash=a59dbdb
    writing contents of /Users/keithtucci/Workspaces/titanium/Cherry/build/iphone/project.xcconfig:
     
    TI_VERSION=2.1.3.v20120927181611
    TI_SDK_DIR=/Users/keithtucci/Library/Application Support/Titanium/mobilesdk/osx/$(TI_VERSION)/iphone
    TI_APPID=com.keithtucci.cherry
    OTHER_LDFLAGS[sdk=iphoneos*]=$(inherited) -weak_framework iAd
    OTHER_LDFLAGS[sdk=iphonesimulator*]=$(inherited) -weak_framework iAd
    #include "module"
     
    old contents
     
     
    Generated the following stylecode code:
     
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
        <dict>
            <key>classes</key>
            <dict>
    </dict>
     
            <key>classes_density</key>
            <dict>
    </dict>
     
            <key>ids</key>
            <dict>
    </dict>
     
            <key>ids_density</key>
            <dict>
    </dict>
     
            <key>tags</key>
            <dict>
    </dict>
     
            <key>tags_density</key>
            <dict>
    </dict>
     
        </dict>
    </plist>
    Finishing build
     ~~~
     
    Studio log
    !SESSION 2012-09-29 08:25:18.365 ----------------------------------------------- eclipse.buildId=2.1.2.201208301612 java.version=1.6.0_35 java.vendor=Apple Inc. BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US Framework arguments: -keyring /Users/keithtucci/.eclipse_keyring -showlocation Command-line arguments: -os macosx -ws cocoa -arch x86 -keyring /Users/keithtucci/.eclipse_keyring -consoleLog -showlocation

    !ENTRY org.eclipse.core.net 1 0 2012-09-29 08:25:27.293 !MESSAGE System property http.nonProxyHosts has been set to local|.local|169.254/16|.169.254/16 by an external source. This value will be overwritten using the values from the preferences ~~~

    — commented 8 months ago by Keith Tucci

Your Answer

Think you can help? Login to answer this question!