{ "id": "174273", "key": "TIMOB-27484", "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": "20832", "name": "Release 8.3.0", "archived": false, "released": true, "releaseDate": "2019-11-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-11-12T10:09:47.000+0000", "created": "2019-10-21T10:08:51.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "engSchedule" ], "versions": [ { "id": "20832", "name": "Release 8.3.0", "archived": false, "released": true, "releaseDate": "2019-11-25" } ], "issuelinks": [ { "id": "57871", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "174279", "key": "TIMOB-27489", "fields": { "summary": "IOS: Building an app to IOS 9.3 simulator gives script error with 8.3.X sdk", "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": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2019-11-12T10:09:47.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": "h5.Description\r\n\r\nWhen building to an iOS 9 device/simulator the following error is seen, it's probable this is down to some of the recent refactorings in the build scripts relating to ti.main\r\n\r\n{code}\r\n[ERROR] Script Error {\r\n[ERROR] column = 119;\r\n[ERROR] line = 5633;\r\n[ERROR] message = \"undefined is not an object (evaluating 'Object.getOwnPropertyDescriptor(TypedArrayPrototype, Symbol.toStringTag).get')\";\r\n[ERROR] sourceURL = \"file:///Users/awam/Library/Developer/CoreSimulator/Devices/D1F3D800-B22D-43F1-A517-7BF234508D73/data/Containers/Bundle/Application/4F541A06-7C24-4A32-9595-CBD8F3410E48/ticreateapp.app/ti.main.js\";\r\n[ERROR] stack = \" at global code(/ti.main.js:5633:119)\";\r\n[ERROR] } \r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n1. Build an app to iOS 9\r\n\r\nh5.Actual\r\n\r\nError above\r\n\r\nh5.Expected\r\n\r\nApp should launch fine", "attachment": [], "flagged": false, "summary": "iOS: App fails to launch with \"undefined is not an object\" on iOS 9", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "iOS 9 device\r\niOS 9 simulator\r\nSDK: 8.3.0.v20191017083324", "closedSprints": [ { "id": 1169, "state": "closed", "name": "2019 Sprint 22", "startDate": "2019-10-21T15:38:21.747Z", "endDate": "2019-11-03T15:38:00.000Z", "completeDate": "2019-11-04T18:36:57.022Z", "originBoardId": 114 }, { "id": 1170, "state": "closed", "name": "2019 Sprint 23", "startDate": "2019-11-04T18:38:14.526Z", "endDate": "2019-11-17T18:38:00.000Z", "completeDate": "2019-11-18T16:38:18.423Z", "originBoardId": 114 }, { "id": 1168, "state": "closed", "name": "2019 Sprint 21", "startDate": "2019-10-07T18:35:57.052Z", "endDate": "2019-10-20T18:35:00.000Z", "completeDate": "2019-10-21T15:38:00.182Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "452149", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "body": "With SDK *8.2.0.GA* there is no problem, the problems started with *SDK8.3*\r\n", "updateAuthor": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2019-10-21T10:11:44.000+0000", "updated": "2019-10-21T10:11:53.000+0000" }, { "id": "452150", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Tracked this down to [these lines|https://github.com/appcelerator/titanium_mobile/blob/74d78fb89404122f278600933c3fb9e3e32cf4d8/common/Resources/ti.internal/extensions/node/internal/util/types.js#L29-L32].\r\n\r\nLooking into the app under the debugger the {{Object.getOwnPropertyDescriptor(TypedArrayPrototype, Symbol.toStringTag)}} call returns null, it looks like {{Symbol.toStringTag}} isn't implemented in JSCore in iOS 9 (confirmed by debugging a website there), but is polyfilled by core-js for us. Looking at core-js, the node team raised this issue also https://github.com/zloirock/core-js/issues/378. We might need to update to core-js 3 to fix this (or try and patch it ourselves like we did for [Error.toJSON|https://github.com/appcelerator/titanium_mobile/blob/74d78fb89404122f278600933c3fb9e3e32cf4d8/common/Resources/ti.internal/extensions/js/Error.js#L13-L21])\r\n\r\ncc [~jvennemann] [~cwilliams]", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2019-10-21T11:44:05.000+0000", "updated": "2019-10-21T11:44:05.000+0000" }, { "id": "452153", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "Might be a good opportunity to replace the deprecated {{@babel/polyfill}} with core-js directly like mentioned on the [@babel/polyfill|https://babeljs.io/docs/en/babel-polyfill] website.", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-10-21T12:27:49.000+0000", "updated": "2019-10-21T12:27:49.000+0000" }, { "id": "452191", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/11289", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2019-10-22T12:56:46.000+0000", "updated": "2019-10-22T12:56:46.000+0000" }, { "id": "452347", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "body": "I urgently need to solve this problem with devices that mount iOS 9. It's possible to put this fix in a nightly build https://builds.appcelerator.com/#master ? Thank you", "updateAuthor": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2019-10-29T21:38:55.000+0000", "updated": "2019-10-29T21:38:55.000+0000" }, { "id": "452351", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~nicolomonili], you can build your own nightly including the outstanding PR in just a few simple steps.\r\n\r\n{code}\r\ngit checkout -b ewanharris-TIMOB-27484 master\r\ngit pull https://github.com/ewanharris/titanium_mobile.git TIMOB-27484\r\nnode build/scons.js cleanbuild \r\n{code}\r\n\r\nIf you don't specify a specific platform (either {{android}} or {{ios}}), the SDK will be build for both.\r\n", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-10-29T23:44:55.000+0000", "updated": "2019-10-29T23:44:55.000+0000" }, { "id": "452573", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "8_3_X: https://github.com/appcelerator/titanium_mobile/pull/11322", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2019-11-11T15:32:24.000+0000", "updated": "2019-11-11T15:32:24.000+0000" }, { "id": "452577", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed on 8_3_X", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-11T17:16:01.000+0000", "updated": "2019-11-11T17:16:01.000+0000" }, { "id": "452578", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed on Master, waiting on Jenkins builds for 8_3_X and Master.", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-11T17:25:18.000+0000", "updated": "2019-11-11T17:25:18.000+0000" }, { "id": "452595", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master and 8_3_X", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-11-11T22:49:38.000+0000", "updated": "2019-11-11T22:49:38.000+0000" }, { "id": "452603", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket*, Verified fix on SDK version {{9.0.0.v20191111145151}} and {{8.3.0.v20191111195828}}.\r\n\r\nTest and other information can be found at: \r\n8_3_X: https://github.com/appcelerator/titanium_mobile/pull/11322\r\nMaster: https://github.com/appcelerator/titanium_mobile/pull/11289", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-12T10:09:41.000+0000", "updated": "2019-11-12T10:09:41.000+0000" } ], "maxResults": 15, "total": 15, "startAt": 0 } } }