{ "id": "161897", "key": "TIMOB-23667", "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": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-10-11T04:55:59.000+0000", "created": "2016-07-21T03:22:58.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2016-10-11T04:56:21.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" }, { "id": "10207", "name": "Tooling" } ], "description": "Sample that call the {{NSObject}} class method {{class}} (e.g. {{UICollectionView}}) are not working on iOS device but do work well on simulator.\r\n\r\nh4. Steps to reproduce\r\n1. Clone hyperloop-examples\r\n2. Install hyperloop 1.2.3\r\n3. *appc ti build -p ios -T device*\r\n4. on device, choose CollectionView\r\n\r\nh4. Expected Result\r\nSee lots of boxes of different colors\r\n\r\nh4. Actual Result\r\nThis error appears:\r\n{code}\r\n[ERROR] Script Error {\r\n[ERROR] column = 2291;\r\n[ERROR] line = 1;\r\n[ERROR] message = \"o[\\\"class\\\"] is not a function. (In 'o[\\\"class\\\"]()', 'o[\\\"class\\\"]' is undefined)\";\r\n[ERROR] sourceURL = \"file:///var/containers/Bundle/Application/A2B1F11F-E7F7-4AD1-9CAA-996F3A1E2718/Hyperloop_Sample.app/alloy/controllers/collectionview.js\";\r\n[ERROR] }\r\n{code}", "attachment": [ { "id": "60432", "filename": "Hyperloop Error.txt", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-10-05T15:10:09.000+0000", "size": 5855, "mimeType": "text/plain" } ], "flagged": false, "summary": "iOS: Hyperloop - Calling [object class] fails on device", "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": "Xcode 7.3.1\r\nHyperloop module 1.2.3\r\nTi.SDK 5.4.0.v20160712013704\r\nAppc CLI 5.4.0-31\r\nAPPC NPM 4.2.7", "closedSprints": [ { "id": 681, "state": "closed", "name": "2016 Sprint 15 Tooling", "startDate": "2016-07-16T00:19:13.868Z", "endDate": "2016-07-30T00:19:00.000Z", "completeDate": "2016-08-01T04:41:26.446Z", "originBoardId": 199 } ], "comment": { "comments": [ { "id": "391204", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "body": "I am able to reproduce this issue too. \r\n\r\n*ENV:*\r\n{code:java}\r\n
Mac OSX El Capitan 10.11.6\r\nStudio: 4.7.0.201607130543\r\n
Ti SDK: 5.4.0.v20160720132422\r\n
Xcode 7.3.1 \r\n
Appc NPM: 4.2.7\r\nAppc CLI: 5.4.0-33 \r\nNode v4.4.4 \r\n{code}\r\n", "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2016-07-21T17:17:25.000+0000", "updated": "2016-07-21T17:17:25.000+0000" }, { "id": "391404", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "The class-method {{[object class]}} is mapped to the string-representation of the class instead of using {{object.class()}}. While [~jvennemann] is still investigating why it works in the Simulator, the above way is the proper solution for now. Example:\r\n\r\nNative:\r\n{code:objc}\r\n[collectionView registerClassForCell:[UICollectionViewCell class] withReuseIdentifier:@\"Cell\"];\r\n{code}\r\nHyperloop:\r\n{code:javascript}\r\ncollectionView.registerClassForCellWithReuseIdentifier(\"UICollectionViewCell\", \"Cell\");\r\n{code}\r\n\r\nI updated the hyperloop-examples repo to reflect this change and we might also want to update the docs for this behavior.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-07-25T10:21:54.000+0000", "updated": "2016-07-25T10:21:54.000+0000" }, { "id": "391806", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Marking as fixed, since the hyperloop-examples have been updated using the correct syntax. @QE: Please verify the fix by testing the collection-view example on device. ", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-07-28T08:47:45.000+0000", "updated": "2016-07-28T08:47:45.000+0000" }, { "id": "398123", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Get the following error when trying to run the hyperloop example app on device (iOS10 / 9 )\r\n\r\n_Please see the attached Error File._\r\n\r\nTested On:\r\niPhone 6 Plus 10.0.2 Device & Simulator\r\niPhone 5S 9.3.5 Device\r\nMac OSX El Capitan 10.11.6\r\nHyperloop Module (1.2.7, 2.0.0)\r\nTi SDK: 6.0.0.v20161004202820\r\nAppc Studio: 4.8.0.201609292239\r\nAppc NPM: 4.2.8-7\r\nApp CLI: 6.0.0-56\r\nXcode 8.0 \r\nNode v4.4.7\r\n*Reopening Ticket.*\r\n", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-10-05T15:05:42.000+0000", "updated": "2016-10-05T15:08:35.000+0000" }, { "id": "398206", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~htbryant] The error relates to TIMOB-23971 as I already commented there. Please resolve / close this one again.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-10-06T07:10:12.000+0000", "updated": "2016-10-06T07:10:12.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }