{ "id": "172775", "key": "TIMOB-26668", "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": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-12-20T11:30:18.000+0000", "created": "2018-12-19T19:41:32.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-testadded" ], "versions": [], "issuelinks": [], "assignee": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2019-04-24T22:45:24.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": "Using {{Ti.UI.ScrollView}} without {{Ti.UI.RefreshControl}} breaks the build.\r\n\r\n*Steps to reproduce the behavior*\r\n* Use the following code in a classic app to create a basic scroll view:\r\n{code:js}\r\nconst win = Ti.UI.createWindow();\r\nconst scrollView = Ti.UI.createScrollView({\r\n height: '80%',\r\n width: '80%'\r\n});\r\nconst view = Ti.UI.createView({\r\n backgroundColor:'#336699',\r\n borderRadius: 10,\r\n top: 10,\r\n height: 2000,\r\n width: 1000\r\n});\r\nscrollView.add(view);\r\n// Uncomment this to fix the build\r\n//const refreshControl = Ti.UI.createRefreshControl();\r\n//scrollView.refreshControl = refreshControl;\r\nwin.add(scrollView);\r\nwin.open();\r\n{code}\r\n* Build and run the app for iOS device or simulator\r\n\r\n*Actual behavior*\r\nBuilding the app fails with the following error:\r\n{code}\r\n[TRACE] /Users/jvennemann/Development/appc/hyperloop-examples/build/iphone/Classes/TiUIScrollView.m:367:3: error: expected expression\r\n[TRACE] ENSURE_SINGLE_ARG_OR_NIL(args, TiUIRefreshControlProxy);\r\n[TRACE] ^\r\n[TRACE] In module 'TitaniumKit' imported from /Users/jvennemann/Development/appc/hyperloop-examples/build/iphone/Classes/TiUIScrollView.h:15:\r\n[TRACE] Frameworks/TitaniumKit.framework/Headers/TiBase.h:158:15: note: expanded from macro 'ENSURE_SINGLE_ARG_OR_NIL'\r\n[TRACE] x = (t *)[x objectAtIndex:0]; \\\r\n[TRACE] ^\r\n[TRACE] /Users/jvennemann/Development/appc/hyperloop-examples/build/iphone/Classes/TiUIScrollView.m:367:34: error: use of undeclared identifier 'TiUIRefreshControlProxy'\r\n{code}\r\n\r\n*Expected behavior*\r\nThe build should run without any errors.\r\n\r\n*Additional notes*\r\nThis was introduced by https://github.com/appcelerator/titanium_mobile/pull/10103", "attachment": [], "flagged": false, "summary": "iOS: Using ScrollView without RefreshControl breaks build", "creator": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium SDK 8.0.0.v20181219075358", "closedSprints": [ { "id": 1104, "state": "closed", "name": "2018 Sprint 26", "startDate": "2018-12-17T15:56:00.172Z", "endDate": "2018-12-21T15:56:00.000Z", "completeDate": "2018-12-26T17:42:17.145Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "444754", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/10550", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-12-19T20:00:40.000+0000", "updated": "2018-12-19T20:00:40.000+0000" }, { "id": "444913", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket. Fix verified in SDK version: 8.0.0.v20181224175014.\r\n\r\nTest and other information can be found at: \r\nhttps://github.com/appcelerator/titanium_mobile/pull/10550", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-02T11:37:58.000+0000", "updated": "2019-01-02T11:37:58.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }