Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-23721

iOS: Invalid method (createTabGroup) passed to UIModule

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Won't Fix
    • Affects Version/s: Release 5.4.0
    • Fix Version/s: None
    • Component/s: iOS
    • Labels:
    • Environment:

      iPhone 6S (9.3.3) Device & iPhone 6 Plus (8.3) Device
      Mac OSX El Capitan 10.11.6
      Ti SDK: 5.4.0.v20160802165655
      Appc Studio: 4.7.0.201607111053
      Appc NPM: 4.2.7
      App CLI: 5.4.0-37
      Xcode 7.3
      Node v4.4.7

      Description

      The following error is thrown when calling the createTabGroup method without specifying any tabs:

      [WARN] :   Attempted to load TiUITabGroupProxy: Could not find class definition.
      [ERROR] :  Script Error {
      [ERROR] :      column = 49;
      [ERROR] :      line = 1;
      [ERROR] :      message = "invalid method (createTabGroup) passed to UIModule";
      [ERROR] :      sourceURL = "file:///var/containers/Bundle/Application/4971331A-066C-4C17-BA2D-3DC44E634884/ShamWise.app/app.js";
      [ERROR] :      stack = "[native code]\nfile:///var/containers/Bundle/Application/4971331A-066C-4C17-BA2D-3DC44E634884/ShamWise.app/app.js:1:49";
      [ERROR] :  }
      

      The issue is resolved when specifying at least one tab as follows:

      	 var tabGroup = Ti.UI.createTabGroup();
      	 
      	 var tab1 = Ti.UI.createTab({
      	 	title: "Tab1"
      	 });
      	 
      	 tabGroup.add(tab1); 
      	 tabGroup.open();
      

      This occurs only on the iOS platform, the demo code launches without issue on the Android platform.

      TEST CODE:

      	 var tabGroup = Ti.UI.createTabGroup();
      	 tabGroup.open();
      

      Steps to Reproduce

      1. Create a classic mobile project
      2. Include the test code above in the app.js
      3. Build to sim / device
      4. Launch the app

      Actual Result

      Error is thrown upon launch.

      Expected Result

      App should launch an empty tabGroup view without issue.

        Attachments

          Activity

            People

            • Assignee:
              hknoechel Hans Knöchel
              Reporter:
              htbryant Harry Bryant
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-9977
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration