{ "id": "160569", "key": "TIMOB-23446", "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-05-30T08:53:40.000+0000", "created": "2016-05-27T07:14:04.000+0000", "epic": { "id": 154964, "key": "TIMOB-20416", "name": "Support Hyperloop modules", "summary": "Support Hyperloop modules in Titanium Mobile", "color": { "key": "color_8" }, "done": false }, "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-5.4.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-07-01T22:04:14.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": "h4. Steps to reproduce\r\n1. using the latest timob master and the latest hyperloop master. (see my env ^)\r\n2. *appc new --classic*\r\n3. install hyperloop module. configure tiapp.xml accordingly: \r\n{code}\r\n \r\n hyperloop\r\n \r\n \r\n hyperloop\r\n \r\n{code}\r\n4. write this in app.js https://gist.github.com/hansemannn/3ea14512f894bc507a5cea57336b7f77\r\n5. *appc run -p ios*\r\n\r\nh4. Expected Result\r\nApp builds normally and shows 2 colored squares\r\n\r\nh4. Actual Result\r\nred screen of death. as attached.\r\n\r\nIf you include \r\n{code}\r\n \r\n true\r\n \r\n{code}\r\nit will work. if you set to false, same red screen of death.", "attachment": [ { "id": "59427", "filename": "Simulator Screen Shot 27 May 2016, 3.04.21 PM.png", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-05-27T07:14:36.000+0000", "size": 161408, "mimeType": "image/png" } ], "flagged": false, "summary": "Hyperloop: iOS: Error when built with TiCore", "creator": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "appc core: 5.4.0-7\r\ntimob: 5.4.0.v20160519143319\r\nhyperloop: 1.2.1", "closedSprints": [ { "id": 631, "state": "closed", "name": "2016 Sprint 11 SDK", "startDate": "2016-05-21T00:06:10.029Z", "endDate": "2016-06-04T00:06:00.000Z", "completeDate": "2016-06-06T07:30:39.854Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "387110", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR here:\r\nhttps://github.com/appcelerator/hyperloop.next/pull/33\r\n\r\nh4. Steps to test\r\n1. build this hyperloop module ./build.sh\r\n2. install it\r\n3. *appc new --classic*\r\n4. in tiapp.xml, have \r\n{code}\r\n \r\n hyperloop\r\n \r\n \r\n hyperloop\r\n \r\n{code}\r\n5. use this in app.js\r\n{code}\r\nvar UIAlertController = require('UIKit/UIAlertController'),\r\n UIAlertAction = require('UIKit/UIAlertAction'),\r\n UIAlertControllerStyleAlert = require('UIKit').UIAlertControllerStyleAlert,\r\n UIAlertActionStyleDefault = require('UIKit').UIAlertActionStyleDefault,\r\n TiApp = require('Titanium/TiApp');\r\n\r\nvar alertController = UIAlertController.alertControllerWithTitleMessagePreferredStyle(\r\n 'My Title',\r\n 'My Message',\r\n UIAlertControllerStyleAlert\r\n);\r\n\r\nvar alertAction = UIAlertAction.actionWithTitleStyleHandler('OK', UIAlertActionStyleDefault, function () {\r\n});\r\n\r\nalertController.addAction(alertAction);\r\n\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white'\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n title: 'press me'\r\n});\r\n\r\n\r\nbtn.addEventListener('click', function(e){\r\n TiApp.app().showModalController(alertController, true);\r\n});\r\n \r\nwin.add(btn);\r\nwin.open();\r\n{code}\r\n6. *appc run -p ios*\r\n\r\nh4. Expected Result\r\nIt will run successfully.\r\nYou can tests more cases by setting this property as well:\r\n false ", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-05-30T07:55:57.000+0000", "updated": "2016-05-30T07:55:57.000+0000" }, { "id": "387111", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "The change is inspired by this:\r\nhttps://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf\r\nwhere by our ticore lib actually doesn't recognise \"setPrototypeOf\" so we Polyfill instead.\r\nThe solution is unfortunately not the most elegant, as i'm directly writing code in the template file.\r\n[~jhaynie] Since we know where the problem lies, can you propose a better way to resolve it and i'll investigate?\r\n\r\nThanks.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-05-30T07:58:17.000+0000", "updated": "2016-05-30T07:58:17.000+0000" }, { "id": "389798", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "body": "I was unable to reproduce the issue with the steps and environment provided above.\r\n\r\n{{5.4.0.v20160519143319}} did not allow me to build the project.\r\n\r\n*There was no error or \"Red screen of death\" present.*\r\n\r\nTested on:
\r\niPhone 6s Plus (9.3.1)\r\niOS Simulator (9.3)\r\n
Mac OSX El Capitan 10.11.5\r\nStudio: 4.7.0.201606220541\r\n
Ti SDK: 5.4.0.v20160629063537\r\n
Appc NPM: 4.2.7-2\r\nAppc CLI: 5.4.0-23\r\n
Xcode 7.3.1\r\nNode v4.4.4\r\n*
Closing Ticket.*", "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2016-07-01T22:03:59.000+0000", "updated": "2016-07-01T22:03:59.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }