{ "id": "173951", "key": "TIMOB-27292", "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": "20827", "name": "Release 8.2.0", "archived": false, "released": true, "releaseDate": "2019-09-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-09-02T11:05:52.000+0000", "created": "2019-07-29T15:08:34.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "engSchedule", "regression" ], "versions": [ { "id": "20827", "name": "Release 8.2.0", "archived": false, "released": true, "releaseDate": "2019-09-19" } ], "issuelinks": [ { "id": "57811", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "173706", "key": "TIMOB-27125", "fields": { "summary": "iOS 13: Make iOS development-project compatible with Xcode 11", "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": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } }, { "id": "57926", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "174290", "key": "TIMOB-27497", "fields": { "summary": "iOS: Remove support of Xcode 8", "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": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2019-11-18T20:38:46.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 simulator/device the app crashes on startup with the below, I believe this is due to the ios version change in [this commit|https://github.com/appcelerator/titanium_mobile/commit/8cac1f88cb226c36a4b9be6e4dee0beffda9b4ce#diff-09cce02f0aa7063f10a4c555dc65a141R23], as this is used to pass in the min iOS version to babel [here|https://github.com/appcelerator/titanium_mobile/blob/a48d707984e88e92f05287dcd3c2588025c9c9f2/build/lib/packager.js#L88] which means we're probably dropping some polyfills that are required. I'm not too sure why we have {{minIosVersion}} and a supported ios version range.\r\n\r\n{code}\r\n[ERROR] Script Error {\r\n[ERROR] line = 769;\r\n[ERROR] sourceURL = \"file:///Users/eharris/Library/Developer/CoreSimulator/Devices/2A296A6B-E602-4231-9396-E35DDEBA2BB9/data/Containers/Bundle/Application/77BAC47A-6617-4AE4-B2C5-AE54D7C2C443/darkmodetesting.app/ti.main.js\";\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n1. Create a basic app, classic or alloy\r\n2. Build the app to an iOS 9 simulator or device\r\n\r\nh5.Actual\r\n\r\nApp crashes on startup\r\n\r\nh5.Expected\r\n\r\nApp should not crash", "attachment": [], "flagged": false, "summary": "iOS: App crashes on startup 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.3\r\nSDK: 8.2.0.v20190726130656", "closedSprints": [ { "id": 1153, "state": "closed", "name": "2019 Sprint 15", "startDate": "2019-07-15T18:30:38.331Z", "endDate": "2019-07-28T18:30:00.000Z", "completeDate": "2019-07-29T15:34:51.860Z", "originBoardId": 114 }, { "id": 1157, "state": "closed", "name": "2019 Sprint 16", "startDate": "2019-07-29T15:35:47.313Z", "endDate": "2019-08-11T15:35:00.000Z", "completeDate": "2019-08-12T07:57:02.552Z", "originBoardId": 114 }, { "id": 1160, "state": "closed", "name": "2019 Sprint 17", "startDate": "2019-08-12T07:59:28.950Z", "endDate": "2019-08-25T07:59:00.000Z", "completeDate": "2019-08-26T15:35:29.980Z", "originBoardId": 114 }, { "id": 1161, "state": "closed", "name": "2019 Sprint 18", "startDate": "2019-08-26T21:46:26.269Z", "endDate": "2019-09-08T21:46:00.000Z", "completeDate": "2019-09-09T20:39:58.761Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "450127", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/11091", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2019-07-29T15:22:43.000+0000", "updated": "2019-07-29T15:22:43.000+0000" }, { "id": "450137", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "The problem is in the packager:\r\n\r\n{code}\r\nconst minSupportedIosSdk = version.parseMin(require(path.join(ROOT_DIR, 'iphone/package.json')).vendorDependencies['ios sdk']);\r\n{code}\r\n\r\nIn the Titanium iOS {{package.json}}, there are {{vendorDependencies.xcode}} and {{vendorDependencies\\['ios sdk'\\]}} as well as {{minIosVersion}}.\r\n\r\nThe {{xcode}} property is the supported range of Xcode versions. This aligns with the {{\"ios sdk\"}} version range.\r\n\r\nThe {{\"ios sdk\"}} version range is the supported range of iOS SDKs used to COMPILE the app, not run the app. The minimum {{\"ios sdk\"}} version is not the actual minimum version that the app will run on.\r\n\r\nThe {{minIosVersion}} is the minimum iOS version the app will run on and is the default for the {{IPHONEOS_DEPLOYMENT_TARGET}} Xcode project setting. This is the version that Babel should be transpiling down to.\r\n\r\nSo, the fix should be in the packager and the above line should be:\r\n\r\n{code}\r\nconst minSupportedIosSdk = require(path.join(ROOT_DIR, 'iphone/package.json')).minIosVersion;\r\n{code}", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2019-07-29T21:11:38.000+0000", "updated": "2019-07-29T21:11:38.000+0000" }, { "id": "450141", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "That was my understanding but tbh I just assumed we had some duplication :)\r\n\r\nI'll update my PR to update that code and the scons-xcode-project-build file that also incorrectly references that, but surely the point still stands that if that's a minimum for compiling then we cant bump that outside of a major version otherwise we'd be introducing a breaking change?", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2019-07-29T22:24:10.000+0000", "updated": "2019-07-29T22:24:10.000+0000" }, { "id": "450142", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~eharris] Correct, we cannot bump the {{minIosVersion}} or the Xcode and iOS SDK range minimum versions until 9.0.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2019-07-29T22:28:05.000+0000", "updated": "2019-07-29T22:28:05.000+0000" }, { "id": "450583", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.\r\nApp builds and launches successfully on iOS 9 simulator", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-08-19T17:50:58.000+0000", "updated": "2019-08-19T17:50:58.000+0000" }, { "id": "451021", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket*, fix verified in SDK version {{8.2.0.v20190829124255}}. Also tested on an iOS 9 device and everything seems to run fine. \r\n\r\nNote* Improvement will be merged into 8_3_X at a later date. \r\n\r\nTest and other information can be found at:\r\nhttps://github.com/appcelerator/titanium_mobile/pull/11091", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-09-02T11:05:44.000+0000", "updated": "2019-09-02T11:05:44.000+0000" }, { "id": "452148", "author": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "body": "\r\nThere are still problems with *iOS 9*\r\n\r\nTest with *SDK8.3.0.v20191016161716 *\r\n\r\n{code:js}\r\n/**\r\n * Create a new `Ti.UI.TabGroup`.\r\n */\r\nvar tabGroup = Ti.UI.createTabGroup();\r\n\r\n/**\r\n * Add the two created tabs to the tabGroup object.\r\n */\r\ntabGroup.addTab(createTab(\"Tab 1\", \"I am Window 1\", \"assets/images/tab1.png\"));\r\ntabGroup.addTab(createTab(\"Tab 2\", \"I am Window 2\", \"assets/images/tab2.png\"));\r\n\r\n/**\r\n * Open the tabGroup\r\n */\r\ntabGroup.open();\r\n\r\n/**\r\n * Creates a new Tab and configures it.\r\n *\r\n * @param {String} title The title used in the `Ti.UI.Tab` and it's included `Ti.UI.Window`\r\n * @param {String} message The title displayed in the `Ti.UI.Label`\r\n * @return {String} icon The icon used in the `Ti.UI.Tab`\r\n */\r\nfunction createTab(title, message, icon) {\r\n var win = Ti.UI.createWindow({\r\n title: title,\r\n backgroundColor: '#fff'\r\n });\r\n\r\n var label = Ti.UI.createLabel({\r\n text: message,\r\n color: \"#333\",\r\n font: {\r\n fontSize: 20\r\n }\r\n });\r\n\r\n win.add(label);\r\n\r\n var tab = Ti.UI.createTab({\r\n title: title,\r\n icon: icon,\r\n window: win\r\n });\r\n\r\n return tab;\r\n}\r\n{code:js}\r\n\r\nError:\r\n{quote}[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:///var/containers/Bundle/Application/97D6BC75-49AF-46CC-A4C0-E6E25289FEBA/Test%20iOS%209.app/ti.main.js\";\r\n[ERROR] : stack = \" at global code@file:///var/containers/Bundle/Application/97D6BC75-49AF-46CC-A4C0-E6E25289FEBA/Test%20iOS%209.app/ti.main.js:5633:119)\";\r\n[ERROR] : }{quote}", "updateAuthor": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "created": "2019-10-21T10:07:38.000+0000", "updated": "2019-10-21T10:07:38.000+0000" }, { "id": "452160", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~smohammed] I noticed per your comment that the fix wasn't merged to 8.3.X right away. Do you know whether this has been merged yet to 8.3.X? If so, is the build that he's using, SDK8.3.0.v20191016161716, before the merge? cc:[~eharris]", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-21T17:06:11.000+0000", "updated": "2019-10-21T17:06:11.000+0000" }, { "id": "452165", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~ahutton] can you please triage with the latest test case from Nicolo? We may have to reopen the ticket.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-21T18:31:29.000+0000", "updated": "2019-10-21T18:31:29.000+0000" }, { "id": "452168", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~amukherjee], Nicolo's comment is a separate issue to this ticket only present on 8.3.0, I opened TIMOB-27484 for that and am working on the fix.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2019-10-21T18:55:13.000+0000", "updated": "2019-10-21T18:55:13.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }