{ "id": "159138", "key": "TIMOB-23124", "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": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-04-05T09:37:22.000+0000", "created": "2016-03-30T13:25:16.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "autolayout", "ios", "qe-5.4.0", "scrollableview" ], "versions": [ { "id": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "issuelinks": [ { "id": "51205", "type": { "id": "10020", "name": "Depends", "inward": "is dependent of", "outward": "depends on" }, "outwardIssue": { "id": "152883", "key": "TIMOB-19908", "fields": { "summary": "iOS: Ti.UI.ScrollableView was not shown", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-06-09T17:40:45.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": "Nothing more to say. Copy {{true}} in the {{}} section of your tiapp.xml and run the project. Make sure you use a 5.4.0 build (scons'd or from the build server).\r\n\r\nThe build will fail with the following error:\r\n{code}\r\n[ERROR] ** BUILD FAILED **\r\n[ERROR] The following build commands failed:\r\n[ERROR] CompileC build/Intermediates/test.build/Debug-iphonesimulator/test.build/Objects-normal/i386/TiUIScrollableView.o Classes/TiUIScrollableView.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler\r\n[ERROR] (1 failure)\r\n{code}\r\n\r\nIt can be traced to here:\r\n{code}\r\n[TRACE] /Users/hans/Desktop/test/build/iphone/Classes/TiUIScrollableView.m:634:33: error: use of undeclared identifier 'scrollview'; did you mean '_scrollView'?\r\n[TRACE] if (showPageControl && (scrollview!=nil) && ([[scrollview subviews] count]>0)) {\r\n[TRACE] ^~~~~~~~~~\r\n[TRACE] _scrollView\r\n[TRACE] In file included from /Users/hans/Desktop/test/build/iphone/Classes/TiUIScrollableView.m:11:\r\n[TRACE] /Users/hans/Desktop/test/build/iphone/Classes/TiUIScrollableView.h:17:19: note: '_scrollView' declared here\r\n[TRACE] UIScrollView* _scrollView;\r\n[TRACE] ^\r\n[TRACE] /Users/hans/Desktop/test/build/iphone/Classes/TiUIScrollableView.m:634:56: error: use of undeclared identifier 'scrollview'; did you mean '_scrollView'?\r\n[TRACE] if (showPageControl && (scrollview!=nil) && ([[scrollview subviews] count]>0)) {\r\n[TRACE] ^~~~~~~~~~\r\n[TRACE] _scrollView\r\n[TRACE] In file included from /Users/hans/Desktop/test/build/iphone/Classes/TiUIScrollableView.m:11:\r\n[TRACE] /Users/hans/Desktop/test/build/iphone/Classes/TiUIScrollableView.h:17:19: note: '_scrollView' declared here\r\n[TRACE] UIScrollView* _scrollView;\r\n[TRACE] ^\r\n[TRACE] /Users/hans/Desktop/test/build/iphone/Classes/TiUIScrollableView.m:646:33: error: use of undeclared identifier 'scrollview'; did you mean '_scrollView'?\r\n[TRACE] if (showPageControl && (scrollview!=nil) && ([[scrollview subviews] count]>0)) {\r\n[TRACE] ^~~~~~~~~~\r\n[TRACE] _scrollView\r\n[TRACE] In file included from /Users/hans/Desktop/test/build/iphone/Classes/TiUIScrollableView.m:11:\r\n[TRACE] /Users/hans/Desktop/test/build/iphone/Classes/TiUIScrollableView.h:17:19: note: '_scrollView' declared here\r\n[TRACE] UIScrollView* _scrollView;\r\n[TRACE] ^\r\n[TRACE] /Users/hans/Desktop/test/build/iphone/Classes/TiUIScrollableView.m:646:56: error: use of undeclared identifier 'scrollview'; did you mean '_scrollView'?\r\n[TRACE] if (showPageControl && (scrollview!=nil) && ([[scrollview subviews] count]>0)) {\r\n[TRACE] ^~~~~~~~~~\r\n[TRACE] _scrollView\r\n[TRACE] In file included from /Users/hans/Desktop/test/build/iphone/Classes/TiUIScrollableView.m:11:\r\n[TRACE] /Users/hans/Desktop/test/build/iphone/Classes/TiUIScrollableView.h:17:19: note: '_scrollView' declared here\r\n[TRACE] UIScrollView* _scrollView;\r\n[TRACE] ^\r\n[TRACE] 4 errors generated.\r\n{code}\r\n\r\nWhich is suspicious, because the related code is only generated if the `#ifdef TI_USE_AUTOLAYOUT` is added and it *is* added by our build CLI.\r\n\r\nAs it's related to the ScrollableView, it might already be obsolete, because [~cng] is working on major bugfixes & improvements in that class. But we should leave it here to be tracked.", "attachment": [], "flagged": false, "summary": "iOS: Autolayout does not work with latest master / Build fails", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 614, "state": "closed", "name": "2016 Sprint 07 SDK", "startDate": "2016-03-26T00:38:56.432Z", "endDate": "2016-04-09T00:38:00.000Z", "completeDate": "2016-04-11T04:41:08.231Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "381045", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "That's correct. on hold for this ticket please I believe I have a PR coming up that may have relation to this.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-03-30T14:36:55.000+0000", "updated": "2016-03-30T14:37:07.000+0000" }, { "id": "381276", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-01T08:38:36.000+0000", "updated": "2016-04-01T08:38:36.000+0000" }, { "id": "381709", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-04-05T08:15:53.000+0000", "updated": "2016-04-05T08:15:53.000+0000" }, { "id": "381722", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Demo\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow();\r\nvar clicked = false;\r\n \r\nvar view1 = Ti.UI.createView({ height: 300, backgroundColor:'#123' });\r\nvar view2 = Ti.UI.createView({ height: 300, backgroundColor:'#246' });\r\nvar view3 = Ti.UI.createView({ height: 300, backgroundColor:'#48b' });\r\n \r\nvar view4 = Ti.UI.createView({ height: 300, backgroundColor:'#f34' });\r\nvar view5 = Ti.UI.createView({ height: 300, backgroundColor:'#3f4' });\r\nvar view6 = Ti.UI.createView({ height: 300, backgroundColor:'#34f' });\r\n \r\nvar scrollableView = Ti.UI.createScrollableView({\r\n views:[view1,view2,view3],\r\n pageIndicatorColor: \"red\",\r\n currentPageIndicatorColor: \"green\",\r\n showPagingControl:true\r\n});\r\n \r\nwin.add(scrollableView);\r\nvar button = Titanium.UI.createButton({\r\n title: 'Hello',\r\n bottom: 10,\r\n width: 100,\r\n height: 50\r\n});\r\nwin.add(button);\r\nbutton.addEventListener('click',function(e)\r\n{\r\n if (clicked == false){ \r\n \r\n scrollableView.views = [view4,view5,view6];\r\n Titanium.API.info(\"You clicked the button\");\r\n } else {\r\n \r\n scrollableView.views = [view1,view2,view3];\r\n Titanium.API.info(\"You clicked the button\");\r\n }\r\n clicked = !clicked;\r\n}); \r\n \r\nwin.open();\r\n{code}\r\n\r\nPR approved!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-05T09:37:15.000+0000", "updated": "2016-04-05T09:37:15.000+0000" }, { "id": "387959", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed, using the demo code provided, and setting AutoLayout to {{true}} and true does not cause the app to crash with the 5.4.0 SDK.\r\n\r\nTested On:\r\niPhone 6S (9.3.2) Device\r\nMac OSX El Capitan 10.11.5 \r\nTi SDK: 5.4.0.v20160608165242\r\nAppc Studio: 4.6.0.201605180604\r\nAppc NPM: 4.2.7.-2\r\nApp CLI: 5.4.0-11\r\nXcode 7.3\r\nNode v4.2.6\r\n\r\n*Closing ticket.*", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-06-09T17:39:39.000+0000", "updated": "2016-06-09T17:39:39.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }