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

Class not found: Ti.UI.ScrollableView in ListView Template

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 5.5.0
    • Component/s: iOS
    • Environment:
    • Sprint:
      2016 Sprint 17 SDK

      Description

      Problem

      Trying to build for Device (iPhone) and for some reason the app dies and gives me an error about ScrollableView in my ListView template. It all works as expected in the simulator and I have also tested multiple versions of CLI, Xcode and Node. I have even reinstalled my Macbook but it didnt solve anything.

      I just downloaded the super-latest 5.3.1 GA SDK, which didnt help either.

      Test case

      app.js

      Titanium.UI.setBackgroundColor('#000');
       
      var tabGroup = Titanium.UI.createTabGroup();
       
      var win1 = Titanium.UI.createWindow({  
          title:'Tab 1',
          backgroundColor:'#fff'
      });
      var tab1 = Titanium.UI.createTab({  
          icon:'KS_nav_views.png',
          title:'Tab 1',
          window:win1
      });
       
      var win2 = Titanium.UI.createWindow({  
          title:'Tab 2',
          backgroundColor:'#fff'
      });
      var tab2 = Titanium.UI.createTab({  
          icon:'KS_nav_ui.png',
          title:'Tab 2',
          window:win2
      });
       
      ///////////
      	var templates = {
      		"scrollableView" : {
      			properties: {
      				height: 75,
      				backgroundColor: "transparent",
      				selectionStyle: Ti.UI.iPhone.ListViewCellSelectionStyle.NONE
      			},
      			childTemplates: [
      				{
      					type: 'Ti.UI.ScrollableView',
      					bindId: 'scrollableView',
      					properties: { height: 75, showPagingControl: false }
      				}
      			]
      		}
      	};
       
      	var section = Ti.UI.createListSection({ items: [{ template: 'scrollableView' }]});
      	
      	var listView = Ti.UI.createListView(
      	{
              templates 		: templates,
              sections 		: [section]  
      	});
       
       
      	win2.add(listView);
      ///////////
       
      tabGroup.addTab(tab1);  
      tabGroup.addTab(tab2);  
       
      tabGroup.open();
      

      Logs

      console

      [WARN] :   Attempted to load TiUIScrollableViewProxy: Could not find class definition.
      [ERROR] :  The application has crashed with an uncaught exception 'org.this_app_ios.module'.
      [ERROR] :  Reason:
      [ERROR] :  Class not found: Ti.UI.ScrollableView
      [ERROR] :  Stack trace:
      [ERROR] :  
      [ERROR] :  0   CoreFoundation                      0x0000000180fdedb0 <redacted> + 124
      [ERROR] :  1   libobjc.A.dylib                     0x0000000180643f80 objc_exception_throw + 56
      [ERROR] :  2   this_app                       0x000000010011bae0 this_app + 768736
      [ERROR] :  3   this_app                       0x00000001000a89e0 this_app + 297440
      [ERROR] :  4   this_app                       0x00000001000a86ac this_app + 296620
      [ERROR] :  5   CoreFoundation                      0x0000000180ecf944 <redacted> + 132
      [ERROR] :  6   CoreFoundation                      0x0000000180ecf7b4 <redacted> + 172
      [ERROR] :  7   this_app                       0x00000001000a82b8 this_app + 295608
      [ERROR] :  8   this_app                       0x000000010025577c this_app + 2054012
      [ERROR] :  9   this_app                       0x00000001002659f0 this_app + 2120176
      [ERROR] :  10  UIKit                               0x0000000186493030 <redacted> + 692
      [ERROR] :  11  UIKit                               0x0000000186493198 <redacted> + 80
      [ERROR] :  12  UIKit                               0x0000000186482298 <redacted> + 2360
      [ERROR] :  13  UIKit                               0x0000000186497c64 <redacted> + 104
      [ERROR] :  14  UIKit                               0x00000001862288c4 <redacted> + 176
      [ERROR] :  15  UIKit                               0x00000001861381e4 <redacted> + 656
      [ERROR] :  16  QuartzCore                          0x0000000183aca994 <redacted> + 148
      [ERROR] :  17  QuartzCore                          0x0000000183ac55d0 <redacted> + 292
      [ERROR] :  18  QuartzCore                          0x0000000183ac5490 <redacted> + 32
      [ERROR] :  19  QuartzCore                          0x0000000183ac4ac0 <redacted> + 252
      [ERROR] :  20  QuartzCore                          0x0000000183ac4820 <redacted> + 500
      [ERROR] :  21  QuartzCore                          0x0000000183abdde4 <redacted> + 80
      [ERROR] :  22  CoreFoundation                      0x0000000180f94728 <redacted> + 32
      [ERROR] :  23  CoreFoundation                      0x0000000180f924cc <redacted> + 372
      [ERROR] :  24  CoreFoundation                      0x0000000180f928fc <redacted> + 928
      [ERROR] :  25  CoreFoundation                      0x0000000180ebcc50 CFRunLoopRunSpecific + 384
      [ERROR] :  26  GraphicsServices                    0x00000001827a4088 GSEventRunModal + 180
      [ERROR] :  27  UIKit                               0x00000001861a6088 UIApplicationMain + 204
      [ERROR] :  28  this_app                       0x0000000100065648 this_app + 22088
      [ERROR] :  29  libdyld.dylib                       0x0000000180a5a8b8 <redacted> + 4
      [ERROR] :  *** Terminating app due to uncaught exception 'org.this_app.module', reason: 'Class not found: Ti.UI.ScrollableView'
      [ERROR] :  *** First throw call stack:
      [ERROR] :  (0x180fdedb0 0x180643f80 0x10011bae0 0x1000a89e0 0x1000a86ac 0x180ecf944 0x180ecf7b4 0x1000a82b8 0x10025577c 0x1002659f0 0x186493030 0x186493198 0x186482298 0x186497c64 0x1862288c4 0x1861381e4 0x183aca994 0x183ac55d0 0x183ac5490 0x183ac4ac0 0x183ac4820 0x183abdde4 0x180f94728 0x180f924cc 0x180f928fc 0x180ebcc50 0x1827a4088 0x1861a6088 0x100065648 0x180a5a8b8)

      Q&A

      http://stackoverflow.com/questions/37750914/titanium-cant-build-for-device-com-apple-syslog-relay-error

        Attachments

          Activity

            People

            • Assignee:
              apetkov Angel Petkov
              Reporter:
              oakleaf Mathias Eklöf
              Reviewer:
              Hans Knöchel
              Tester:
              Josh Longton
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code