{ "id": "161594", "key": "TIMOB-23616", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "18253", "name": "Release 5.5.0", "archived": false, "released": true, "releaseDate": "2016-09-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-08-24T20:26:08.000+0000", "created": "2016-07-07T09:01:31.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "ios", "listview", "qe-5.5.0", "scrollableview", "titanium" ], "versions": [], "issuelinks": [], "assignee": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-08-26T17:13:54.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h2. Problem\r\nTrying 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.\r\n\r\n_I just downloaded the super-latest 5.3.1 GA SDK, which didnt help either._\r\n\r\n---\r\n\r\nh2. Test case\r\n{code:lang=javascript|title=app.js}\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n});\r\n\r\nvar win2 = Titanium.UI.createWindow({ \r\n title:'Tab 2',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab2 = Titanium.UI.createTab({ \r\n icon:'KS_nav_ui.png',\r\n title:'Tab 2',\r\n window:win2\r\n});\r\n\r\n///////////\r\n\tvar templates = {\r\n\t\t\"scrollableView\" : {\r\n\t\t\tproperties: {\r\n\t\t\t\theight: 75,\r\n\t\t\t\tbackgroundColor: \"transparent\",\r\n\t\t\t\tselectionStyle: Ti.UI.iPhone.ListViewCellSelectionStyle.NONE\r\n\t\t\t},\r\n\t\t\tchildTemplates: [\r\n\t\t\t\t{\r\n\t\t\t\t\ttype: 'Ti.UI.ScrollableView',\r\n\t\t\t\t\tbindId: 'scrollableView',\r\n\t\t\t\t\tproperties: { height: 75, showPagingControl: false }\r\n\t\t\t\t}\r\n\t\t\t]\r\n\t\t}\r\n\t};\r\n\r\n\tvar section = Ti.UI.createListSection({ items: [{ template: 'scrollableView' }]});\r\n\t\r\n\tvar listView = Ti.UI.createListView(\r\n\t{\r\n templates \t\t: templates,\r\n sections \t\t: [section] \r\n\t});\r\n\r\n\r\n\twin2.add(listView);\r\n///////////\r\n\r\ntabGroup.addTab(tab1); \r\ntabGroup.addTab(tab2); \r\n\r\ntabGroup.open();\r\n{code} \r\n\r\n---\r\n\r\nh2. Logs\r\n{code:lang=none|title=console}\r\n[WARN] : Attempted to load TiUIScrollableViewProxy: Could not find class definition.\r\n[ERROR] : The application has crashed with an uncaught exception 'org.this_app_ios.module'.\r\n[ERROR] : Reason:\r\n[ERROR] : Class not found: Ti.UI.ScrollableView\r\n[ERROR] : Stack trace:\r\n[ERROR] : \r\n[ERROR] : 0 CoreFoundation 0x0000000180fdedb0 + 124\r\n[ERROR] : 1 libobjc.A.dylib 0x0000000180643f80 objc_exception_throw + 56\r\n[ERROR] : 2 this_app 0x000000010011bae0 this_app + 768736\r\n[ERROR] : 3 this_app 0x00000001000a89e0 this_app + 297440\r\n[ERROR] : 4 this_app 0x00000001000a86ac this_app + 296620\r\n[ERROR] : 5 CoreFoundation 0x0000000180ecf944 + 132\r\n[ERROR] : 6 CoreFoundation 0x0000000180ecf7b4 + 172\r\n[ERROR] : 7 this_app 0x00000001000a82b8 this_app + 295608\r\n[ERROR] : 8 this_app 0x000000010025577c this_app + 2054012\r\n[ERROR] : 9 this_app 0x00000001002659f0 this_app + 2120176\r\n[ERROR] : 10 UIKit 0x0000000186493030 + 692\r\n[ERROR] : 11 UIKit 0x0000000186493198 + 80\r\n[ERROR] : 12 UIKit 0x0000000186482298 + 2360\r\n[ERROR] : 13 UIKit 0x0000000186497c64 + 104\r\n[ERROR] : 14 UIKit 0x00000001862288c4 + 176\r\n[ERROR] : 15 UIKit 0x00000001861381e4 + 656\r\n[ERROR] : 16 QuartzCore 0x0000000183aca994 + 148\r\n[ERROR] : 17 QuartzCore 0x0000000183ac55d0 + 292\r\n[ERROR] : 18 QuartzCore 0x0000000183ac5490 + 32\r\n[ERROR] : 19 QuartzCore 0x0000000183ac4ac0 + 252\r\n[ERROR] : 20 QuartzCore 0x0000000183ac4820 + 500\r\n[ERROR] : 21 QuartzCore 0x0000000183abdde4 + 80\r\n[ERROR] : 22 CoreFoundation 0x0000000180f94728 + 32\r\n[ERROR] : 23 CoreFoundation 0x0000000180f924cc + 372\r\n[ERROR] : 24 CoreFoundation 0x0000000180f928fc + 928\r\n[ERROR] : 25 CoreFoundation 0x0000000180ebcc50 CFRunLoopRunSpecific + 384\r\n[ERROR] : 26 GraphicsServices 0x00000001827a4088 GSEventRunModal + 180\r\n[ERROR] : 27 UIKit 0x00000001861a6088 UIApplicationMain + 204\r\n[ERROR] : 28 this_app 0x0000000100065648 this_app + 22088\r\n[ERROR] : 29 libdyld.dylib 0x0000000180a5a8b8 + 4\r\n[ERROR] : *** Terminating app due to uncaught exception 'org.this_app.module', reason: 'Class not found: Ti.UI.ScrollableView'\r\n[ERROR] : *** First throw call stack:\r\n[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){code} \r\n\r\n---\r\n\r\nh2. Q&A \r\n[http://stackoverflow.com/questions/37750914/titanium-cant-build-for-device-com-apple-syslog-relay-error]", "attachment": [], "flagged": false, "summary": "Class not found: Ti.UI.ScrollableView in ListView Template", "creator": { "name": "oakleaf", "key": "oakleaf", "displayName": "Mathias Eklöf", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "oakleaf", "key": "oakleaf", "displayName": "Mathias Eklöf", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Macbook Pro 15\" Retina, late 2014.\r\n\r\nAppcelerator Command-Line Interface, version 5.3.1\r\nCopyright (c) 2014-2016, Appcelerator, Inc. All Rights Reserved.\r\n\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.11.5\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 16.0GB\r\n\r\nNode.js\r\n Node.js Version = 0.12.15\r\n npm Version = 2.15.1\r\n\r\nAppcelerator CLI\r\n Installer = 4.2.7\r\n Core Package = 5.3.1\r\n\r\nTitanium CLI\r\n CLI Version = 5.0.8\r\n node-appc Version = 0.2.31\r\n\r\nTitanium SDKs\r\n 5.4.0.v20160704082523\r\n\r\nXcode\r\n 7.3 (build 7D175) - Xcode default\r\n Install Location = /Applications/Xcode.app/Contents/Developer\r\n iOS SDKs = 9.3\r\n iOS Simulators = 9.3\r\n Watch SDKs = 2.2\r\n Watch Simulators = 2.2\r\n Supported by TiSDK 5.3.0.GA = yes", "closedSprints": [ { "id": 695, "state": "closed", "name": "2016 Sprint 17 SDK", "startDate": "2016-08-13T00:00:16.620Z", "endDate": "2016-08-27T00:00:00.000Z", "completeDate": "2016-08-29T03:18:08.942Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "390199", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hey there,\r\n\r\nmay the problem be that your item template is named \"scrollableView\" and that overlaps with some other API? Just some troubleshooting...\r\n\r\n*EDIT:* Guess I got it. We are adding some classes to the compiled ones automatically when using a list view:\r\n{code:javascript}\r\n\tcontents.push(\r\n\t\t\t'#ifdef USE_TI_UILISTVIEW',\r\n\t\t\t'#define USE_TI_UILABEL',\r\n\t\t\t'#define USE_TI_UIBUTTON',\r\n\t\t\t'#define USE_TI_UIIMAGEVIEW',\r\n\t\t\t'#define USE_TI_UIPROGRESSBAR',\r\n\t\t\t'#define USE_TI_UIACTIVITYINDICATOR',\r\n\t\t\t'#define USE_TI_UISWITCH',\r\n\t\t\t'#define USE_TI_UISLIDER',\r\n\t\t\t'#define USE_TI_UITEXTFIELD',\r\n\t\t\t'#define USE_TI_UITEXTAREA',\r\n\t\t\t'#endif'\r\n\t\t);\r\n{code}\r\nSo we may need to add the {{USE_TI_UISCROLLABLEVIEW}} as well. But I would highly suggest to not include it, since scrollable-views should not be placed in list-views in ways of good code-style.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-07-08T21:21:06.000+0000", "updated": "2016-07-08T21:36:24.000+0000" }, { "id": "390203", "author": { "name": "oakleaf", "key": "oakleaf", "displayName": "Mathias Eklöf", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi, thank you for trying to help me with this. The weirdest part is that everything worked perfectly until I updated the SDK. But I have tried and successfully downgraded everything but it still doesnt work.\r\n\r\nWhat do you suggest I do? (even if this method is not recommended, we really need it.)", "updateAuthor": { "name": "oakleaf", "key": "oakleaf", "displayName": "Mathias Eklöf", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-07-08T21:51:20.000+0000", "updated": "2016-07-08T21:51:20.000+0000" }, { "id": "390477", "author": { "name": "oakleaf", "key": "oakleaf", "displayName": "Mathias Eklöf", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I found where this code is located (The code you mentioned), and I added the USE_TI_UISCROLLABLEVIEW but nothing happened differently.\r\n\r\n^\t\t\t'#ifdef USE_TI_UILISTVIEW',\r\n\t\t\t'#define USE_TI_UILABEL',\r\n\t\t\t'#define USE_TI_UIBUTTON',\r\n\t\t\t'#define USE_TI_UIIMAGEVIEW',\r\n\t\t\t'#define USE_TI_UIPROGRESSBAR',\r\n\t\t\t'#define USE_TI_UIACTIVITYINDICATOR',\r\n\t\t\t'#define USE_TI_UISWITCH',\r\n\t\t\t'#define USE_TI_UISLIDER',\r\n\t\t\t'#define USE_TI_UITEXTFIELD',\r\n\t\t\t'#define USE_TI_UITEXTAREA',\r\n\t\t\t'#define USE_TI_UISCROLLABLEVIEW',\r\n\t\t\t'#endif'^\r\n\r\nDo you have any other clue what to do? As I described, everything works fine in the simulator and on my collegues computers. ", "updateAuthor": { "name": "oakleaf", "key": "oakleaf", "displayName": "Mathias Eklöf", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-07-12T09:40:18.000+0000", "updated": "2016-07-12T09:41:21.000+0000" }, { "id": "393724", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hey there, sorry for the delay. We'll put it under further investigation in the next code-sprint.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-08-21T22:48:23.000+0000", "updated": "2016-08-21T22:48:23.000+0000" }, { "id": "393854", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Added scrollableView and stepper to the defines. \r\n* PR:https://github.com/appcelerator/titanium_mobile/pull/8250", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-08-22T21:58:38.000+0000", "updated": "2016-08-22T21:58:38.000+0000" }, { "id": "393965", "author": { "name": "oakleaf", "key": "oakleaf", "displayName": "Mathias Eklöf", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hey guys, I just downloaded mobilesdk-6.1.0.v20160823024541-osx.zip but it didnt help, still the same issue. Am I supposed to do anything more?", "updateAuthor": { "name": "oakleaf", "key": "oakleaf", "displayName": "Mathias Eklöf", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-08-23T17:59:47.000+0000", "updated": "2016-08-23T17:59:47.000+0000" }, { "id": "393975", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~oakleaf] Hello, the PR isn't merged so the change isn't part of the SDK yet. It should still fail, It will be merged shortly once it's FT. Thank you! ", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-08-23T19:09:50.000+0000", "updated": "2016-08-23T19:10:05.000+0000" }, { "id": "394282", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~oakleaf] The PR was just merged. Please grab a fresh 6.1.0 build and test it with it, thanks. *EDIT*: Try [this build|http://builds.appcelerator.com/mobile/master/mobilesdk-6.1.0.v20160824151018-osx.zip].", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-08-24T20:25:36.000+0000", "updated": "2016-08-24T22:31:49.000+0000" }, { "id": "394305", "author": { "name": "oakleaf", "key": "oakleaf", "displayName": "Mathias Eklöf", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Awesome guys, seems to work. Thank you all!", "updateAuthor": { "name": "oakleaf", "key": "oakleaf", "displayName": "Mathias Eklöf", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-08-24T22:38:12.000+0000", "updated": "2016-08-24T22:38:12.000+0000" }, { "id": "394339", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~apetkov] [~hansknoechel] let's back port for 6.0.0 and 5.5.0.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-08-25T02:25:28.000+0000", "updated": "2016-08-25T02:25:28.000+0000" }, { "id": "394340", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~cng] Alright, sure thing. \r\n* 6_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/8261\r\n* 5_5_X PR: https://github.com/appcelerator/titanium_mobile/pull/8260", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-08-25T02:39:24.000+0000", "updated": "2016-08-25T02:39:48.000+0000" }, { "id": "394514", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed.\r\n\r\nTested on:\r\n{noformat}\r\niPhone 6 plus (9.3.4)\r\niPhone 6 (10.0)\r\niOS Simulator (10.0)\r\n
Mac OSX El Capitan 10.11.6\r\n
Appc NPM: 4.2.7\r\nStudio: 4.7.1.201608190732\r\nSDK: 5.5.0.v20160825003900\r\nAppc CLI: 5.5.0-5\r\nXcode 8 beta 4\r\nNode: v4.4.7\r\n{noformat}\r\n\r\n*Closing ticket*", "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2016-08-26T17:13:22.000+0000", "updated": "2016-08-26T17:13:22.000+0000" } ], "maxResults": 17, "total": 17, "startAt": 0 } } }