{ "id": "162388", "key": "TIMOB-23722", "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" }, { "id": "18264", "name": "hyperloop 1.2.7", "archived": false, "released": true, "releaseDate": "2017-02-06" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-08-18T08:48:05.000+0000", "created": "2016-08-03T20:00:04.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [ { "id": "52460", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "162596", "key": "TIMOB-23777", "fields": { "summary": "Unable to require UIStepper in Hyperloop", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-03-31T22:15: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": "13715", "name": "Hyperloop", "description": "Hyperloop project" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "The {{CLBeaconRegion}} class and others (TIMOB-2377) do not work. -We need the reason why only certain classes do not work and what their pattern is-. The problem is that classes that have the unavailable-macro for watchOS/tvOS during the metabase AST-analysis.\r\n\r\nIn detail, these two bad boys produce the problems:\r\n{code}\r\n__TVOS_PROHIBITED __WATCHOS_PROHIBITED\r\n{code}\r\nSo we need to check for them explicitly and only skip a class when {{__IOS_UNAVAILABLE}} occurs.\r\n\r\nExample: \r\n{code:javascript}\r\nvar CLBeaconRegion = require(\"CoreLocation/CLBeaconRegion\");\r\nvar NSUUID = require(\"Foundation/NSUUID\");\r\n\r\nvar uuid = NSUUID.alloc().initWithUUIDString(\"B9407F30-F5F8-466E-AFF9-25556B57FE6D\");\r\nvar region = CLBeaconRegion.alloc().initWithProximityUUIDMajorMinorIdentifier(uuid, 1, 1, \"com.appcelerator.beacons\");\r\n{code}\r\n\r\n*Expected behavior*: The initialization of the object works.\r\n*Actual behavior*: The following log is thrown and the object is not initialized:\r\n{code}\r\n[ERROR] Script Error {\r\n[ERROR] column = 42;\r\n[ERROR] line = 12;\r\n[ERROR] message = \"undefined is not a function (evaluating 'CLBeaconRegion.alloc()')\";\r\n[ERROR] sourceURL = \"file:///Users/hans/Library/Developer/CoreSimulator/Devices/765A790D-A9C5-4C7C-B3F7-15D024664D22/data/Containers/Bundle/Application/260A0F3D-2B17-4735-95ED-EBFB46671133/Hyperloop_Sample.app/alloy/controllers/beacons.js\";\r\n[ERROR] stack = \"startDiscovery@file:///Users/hans/Library/Developer/CoreSimulator/Devices/765A790D-A9C5-4C7C-B3F7-15D024664D22/data/Containers/Bundle/Application/260A0F3D-2B17-4735-95ED-EBFB46671133/Hyperloop_Sample.app/alloy/controllers/beacons.js:12:42\";\r\n[ERROR] \r\n{code}", "attachment": [ { "id": "60064", "filename": "hyperloop.zip", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-08-17T15:35:04.000+0000", "size": 2360110, "mimeType": "application/zip" }, { "id": "60062", "filename": "Simulator Screen Shot 17.08.2016, 17.25.37.png", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-08-17T15:35:08.000+0000", "size": 76276, "mimeType": "image/png" }, { "id": "60063", "filename": "Simulator Screen Shot 17.08.2016, 17.32.43.png", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-08-17T15:35:08.000+0000", "size": 60867, "mimeType": "image/png" } ], "flagged": false, "summary": "Hyperloop: Classes that are unavailable on watchOS/tvOS are also not compiled on iOS", "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": "Hyperloop 1.2.5\r\niOS 9\r\nTitanium SDK 5.4.0", "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": "393369", "author": { "name": "xicovarisco_orange", "key": "xicovarisco_orange", "displayName": "Francisco Ruaro Varisco", "active": true, "timeZone": "America/Los_Angeles" }, "body": "No news about this?\r\nI'm having the same issue.", "updateAuthor": { "name": "xicovarisco_orange", "key": "xicovarisco_orange", "displayName": "Francisco Ruaro Varisco", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-08-17T06:32:20.000+0000", "updated": "2016-08-17T06:32:20.000+0000" }, { "id": "393372", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "Could someone please zip their hyperloop folder under the build directory and attach it to this issue? I'm trying to reproduce this but seeing another error regarding CLBeaconReagion at the moment and i would like to compare the generated files.", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-08-17T09:50:49.000+0000", "updated": "2016-08-17T09:50:49.000+0000" }, { "id": "393381", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/hyperloop.next/pull/60\r\n\r\nThis fixes classes like CLBeaconRegion and UIStepper (TIMOB-23777) being unavailable in Hyperloop. Tested it with with the example given here, Hyperloop Examples Project and the environment described in this ticket. Since the error reported here is a little different from the one i was able to reproduce, this might need some more testing and verification. ", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-08-17T13:01:03.000+0000", "updated": "2016-08-17T13:01:43.000+0000" }, { "id": "393384", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR approved and merged. I will bump the 1.2.7 then and publish the new release for QE", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-08-17T14:13:36.000+0000", "updated": "2016-08-17T14:13:36.000+0000" }, { "id": "416573", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed, if there are any problems, please file a new ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-31T22:15:54.000+0000", "updated": "2017-03-31T22:15:54.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }