{ "id": "167467", "key": "TIMOB-24661", "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": "11258", "description": "Holding Pen for Triaged Issues", "name": "Backlog", "archived": false, "released": false } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-05-08T15:46:53.000+0000", "created": "2017-05-05T05:37:17.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "hyperloop", "ios", "module" ], "versions": [], "issuelinks": [ { "id": "54832", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "166887", "key": "TIMOB-24547", "fields": { "summary": "Hyperloop iOS: keys[num].indexOf is not a function", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "54833", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "154519", "key": "TIMOB-20274", "fields": { "summary": "Hyperloop: Plugin fails if the source does not contain HL references", "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": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-02T19:08:33.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": "When trying to compile an Hyperloop enabled project, if there is my charts module present it crash with this error. \r\n\r\nSee the attached Alloy project. It includes the build folder.", "attachment": [ { "id": "62174", "filename": "chartPoC.zip", "author": { "name": "bgarcia", "key": "bgarcia", "displayName": "Brian García", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-05T05:36:59.000+0000", "size": 7782308, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: Hyperloop: keys[num].indexOf is not a function with a module", "creator": { "name": "bgarcia", "key": "bgarcia", "displayName": "Brian García", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "bgarcia", "key": "bgarcia", "displayName": "Brian García", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 889, "state": "closed", "name": "2017 Sprint 10 SDK", "startDate": "2017-05-08T00:27:49.740Z", "endDate": "2017-05-22T00:27:00.000Z", "completeDate": "2017-05-22T02:41:01.011Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "419175", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hey Brian, thanks! But wait a second, didn't we have this in TIMOB-24547 as well (where you commented). I commented as well that it's resolved in 2.1.0 (as part of TIMOB-20274), so you are still getting it with 2.1.0?", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-05-05T13:04:41.000+0000", "updated": "2017-05-05T13:04:41.000+0000" }, { "id": "419223", "author": { "name": "bgarcia", "key": "bgarcia", "displayName": "Brian García", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Hans, yes it still happens in 2.1.0 that's why I opened a new ticket I think it could be a different issue may be regarding the dynamic lib hook.", "updateAuthor": { "name": "bgarcia", "key": "bgarcia", "displayName": "Brian García", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-05T18:45:47.000+0000", "updated": "2017-05-05T18:45:47.000+0000" }, { "id": "419224", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Ok, so \r\n* Is the issue is appearing when you use a native module together with Hyperloop? \r\n* Do you use any Hyperloop functionality (because I cannot see any)? \r\n* Will it work if you add one like a UILabel reference? \r\n* Does it work with other modules that do not have the dynamic-lib hook?\r\n* Can you attach the whole error-trace-log?\r\n* (Unrelated, personal) Why not just use the framework with CocoaPods in Hyperloop?\r\n\r\nThanks :-)", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-05-05T18:50:47.000+0000", "updated": "2017-05-05T18:52:14.000+0000" }, { "id": "419240", "author": { "name": "bgarcia", "key": "bgarcia", "displayName": "Brian García", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Answering in order:\r\n\r\n* Yes, for me only happens with this module.\r\n* In other project yes, I made this demo project to see if there is any collision with some Hyperloop requires but it crashes just adding it to tiapp.xml\r\n* No, for the above reason.\r\n* Yes, I have other modules in the original projects and compiles and run perfectly.\r\n* the build log is inside the zip (if you need another one that there is in a different location just tell me the path I will upload it to a gist) I stated that there are some lines that doesn't show up in the build log: \r\n{code}\r\n[DEBUG] Copying /Users/Brian/Documents/workspace/chartPoC/Resources/iphone/app.js => /Users/Brian/Documents/workspace\r\n/chartPoC/build/iphone/build/Products/Debug-iphonesimulator/chartPoC.app/app.js\r\n[ERROR] An error occurred during build after 7s 374ms\r\n[ERROR] keys[num].indexOf is not a function\r\n{code}\r\n\r\n* Because the mpcharts is a swift pod and pod frameworks are not supported yet. Also because I want to test if there is a performance difference between Hyperloop and native module (in Android I think so, but I need to do more testing)", "updateAuthor": { "name": "bgarcia", "key": "bgarcia", "displayName": "Brian García", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-06T08:36:07.000+0000", "updated": "2017-05-06T08:36:07.000+0000" }, { "id": "419294", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~hansknoechel], the crash is caused by the ti.dynamiclib hook. It extends the Array prototype by just assigned the {{last}} property. This causes all arrays to have the iterable property {{last}} which causes the crash. To avoid that, the prototype extension should be defined like this:\r\n{code:js}\r\nif (!Array.prototype.last) {\r\n Object.defineProperty(Array.prototype, 'last', {\r\n value: function() {\r\n return this[this.length - 1];\r\n }\r\n });\r\n}\r\n{code}", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-05-08T14:35:11.000+0000", "updated": "2017-05-08T14:35:11.000+0000" }, { "id": "419298", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Thanks Jan! Updated the library and released [1.0.1 on Github|https://github.com/appcelerator-modules/hook-embedded-frameworks/releases]. Resolving issue ...", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-05-08T15:46:24.000+0000", "updated": "2017-05-08T15:46:24.000+0000" }, { "id": "419302", "author": { "name": "bgarcia", "key": "bgarcia", "displayName": "Brian García", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Confirmed as solved! Thank you!", "updateAuthor": { "name": "bgarcia", "key": "bgarcia", "displayName": "Brian García", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-08T16:05:07.000+0000", "updated": "2017-05-08T16:05:07.000+0000" }, { "id": "420833", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-02T19:08:33.000+0000", "updated": "2017-06-02T19:08:33.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }