{ "id": "170246", "key": "ALOY-1590", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "19950", "name": "CLI Release 7.0.0", "archived": false, "released": true } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-11-09T22:39:25.000+0000", "created": "2017-11-07T17:36:12.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "updated": "2017-11-09T23:01:41.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": "12329", "name": "Runtime", "description": "Generic bucket for uncategorized runtime issues" } ], "description": "When opening a window if the controller has a variable assigned eg. var ANIMATION = OS_IOS; on android the app will crash.", "attachment": [ { "id": "63556", "filename": "index.js", "author": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-07T17:38:49.000+0000", "size": 67, "mimeType": "text/javascript" } ], "flagged": false, "summary": "Android: OS_IOS assigned to a variable causes a crash.", "creator": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 969, "state": "closed", "name": "2017 Sprint 23 Tooling", "startDate": "2017-11-05T16:36:50.292Z", "endDate": "2017-11-19T16:36:00.000Z", "completeDate": "2017-11-20T18:58:45.002Z", "originBoardId": 219 } ], "comment": { "comments": [ { "id": "430275", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello [~jceaser],\r\nThanks for sharing with us. Can you please visit this [link|https://gist.github.com/rakhimoni/a801f624bc838da0e303a0a3589d8f16] , test the sample code on iOS platform and let us know the results.", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2017-11-08T05:41:24.000+0000", "updated": "2017-11-08T05:41:24.000+0000" }, { "id": "430277", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "The {{OS_IOS}}, {{OS_ANDROID}} and {{OS_WINDOWS}} variables are used by the compiler and resolved to classic Titanium code at build-time, so there are not supposed to be assigned to variables, just like the {{@available(iOS 11.0,*)}} flag in Swift. [~fmiao] to confirm, but I don't think this is something we should fix.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-11-08T08:04:51.000+0000", "updated": "2017-11-08T08:04:51.000+0000" }, { "id": "430285", "author": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Why would it work prior to 6.3?", "updateAuthor": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-08T14:13:36.000+0000", "updated": "2017-11-08T14:13:36.000+0000" }, { "id": "430287", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~jceaser] That makes it to a different thing :-) Unfortunately, you didn't provide any context so we could only guess. Please attach your full environment (including Alloy- and Appc-CLI-version).", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-11-08T14:17:27.000+0000", "updated": "2017-11-08T14:17:27.000+0000" }, { "id": "430288", "author": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Sorry about that, I created the ticket too fast. What information do you need about my environment?", "updateAuthor": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-08T14:19:51.000+0000", "updated": "2017-11-08T14:19:51.000+0000" }, { "id": "430289", "author": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I was using 6.3.0.GA when I got this error\r\n\r\nAppcelerator Command-Line Interface, version 6.3.0\r\nCopyright (c) 2014-2017, Appcelerator, Inc. All Rights Reserved.\r\n\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.12.6\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 16.0GB\r\n\r\nNode.js\r\n Node.js Version = 6.10.3\r\n npm Version = 3.10.10\r\n\r\nTitanium CLI\r\n CLI Version = 5.0.14\r\n node-appc Version = 0.2.41", "updateAuthor": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-08T14:36:38.000+0000", "updated": "2017-11-08T14:36:38.000+0000" }, { "id": "430334", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "PR: https://github.com/appcelerator/alloy/pull/858", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2017-11-09T01:06:34.000+0000", "updated": "2017-11-09T01:06:34.000+0000" }, { "id": "430362", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "FR Passed. Error is no longer present when using OS_IOS, OS_ANDROID, and OS_WINDOWS in variable assignment.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-11-09T22:39:25.000+0000", "updated": "2017-11-09T22:39:25.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }