{ "id": "168894", "key": "TIMOB-24948", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-09-15T14:46:24.000+0000", "created": "2017-07-10T00:51:36.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "19779", "name": "Hyperloop 2.1.2", "archived": false, "released": true, "releaseDate": "2017-07-10" } ], "issuelinks": [], "assignee": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2018-08-06T17:36:59.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": "I am trying to implement the iOS 11 API {{DeviceCheck}} with Hyperloop, but it fails with 2.1.2 / 2.1.3 Beta 1 - The wrappers are simply not generated:\r\n{code:js}\r\nvar DCDevice = require('DeviceCheck/DCDevice');\r\n\r\nexports.generateToken = function(cb) {\r\n\tif (!DCDevice.current.isSupported) {\r\n\t\tTi.API.info('iOS 11 DeviceCheck API not supported for this device, skipping ...');\r\n\t\treturn;\r\n\t}\r\n\t\r\n\tDCDevice.current.generateTokenWithCompletionHandler(function(token, error) {\r\n\t\tif (error != null) {\r\n\t\t\tcb({ success: false, error: error.localizedDescription });\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tcb({ success: true, token: token });\r\n\t});\r\n}\r\n{code}", "attachment": [], "flagged": false, "summary": "Hyperloop: iOS - Cannot build iOS 11 API's", "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": 948, "state": "closed", "name": "2017 Sprint 19 SDK", "startDate": "2017-09-10T21:24:51.562Z", "endDate": "2017-09-24T21:24:00.000Z", "completeDate": "2017-09-25T17:49:27.460Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "427635", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~hknoechel], this seems to be an issue with multiple Xcode installs and wrong docs. First make sure to build using the {{-I 11.0}} flag. After that the wrappers were generated for me. Also the docs for DCDevice seem to be outdated, {{DCDevice.current}} is wrong and it should be {{DCDevice.currentDevice}}. And last but not least it should be {{DCDevice.currentDevice.isSupported()}} because {{isSupported}} is the getter method for the {{supported}} property.", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-06T14:48:20.000+0000", "updated": "2017-09-06T14:48:20.000+0000" }, { "id": "427941", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Resolving as Invalid with regards to the above comment", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-09-15T14:46:25.000+0000", "updated": "2017-09-15T14:46:25.000+0000" }, { "id": "439900", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as invalid. If incorrect, please reopen.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T17:36:59.000+0000", "updated": "2018-08-06T17:36:59.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }