{ "id": "171448", "key": "AC-5690", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2018-04-05T15:11:17.000+0000", "created": "2018-04-03T15:19:30.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-04-05T15:11:18.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14551", "name": "Studio", "description": "Please enter tickets related to Titanium Studio here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "I've noticed that recent versions of the Titanium SDK force an iOS app to run in strict mode. Seems to be an issue since at least 6.3.0.GA. To reproduce: create an app including some code which is not permitted in strict mode, e.g. use \"with()\", package the app, error is thrown during packaging.", "attachment": [], "flagged": false, "summary": "Apps forced to run in strict mode", "creator": { "name": "Ian.taylor@fraigneux.com", "key": "ian.taylor@fraigneux.com", "displayName": "Ian Taylor", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "Ian.taylor@fraigneux.com", "key": "ian.taylor@fraigneux.com", "displayName": "Ian Taylor", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "436272", "author": { "name": "Ian.taylor@fraigneux.com", "key": "ian.taylor@fraigneux.com", "displayName": "Ian Taylor", "active": true, "timeZone": "America/Los_Angeles" }, "body": "A bit more info:\r\n\r\nSDK 6.3.0 - app will build for simulator without error, but not for iTunes\r\nSDK 7.1.0 - app will not build for simulator or iTunes\r\n\r\nHave tried two machines running v8.9.1 and v4.6.0.", "updateAuthor": { "name": "Ian.taylor@fraigneux.com", "key": "ian.taylor@fraigneux.com", "displayName": "Ian Taylor", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-04T10:12:04.000+0000", "updated": "2018-04-04T10:12:04.000+0000" }, { "id": "436543", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "This is intended implicit behavior. In Titanium 7.1.0 and onwards, strict mode is required.\r\n\r\nWe introduced Babel in node-titanium-sdk@0.2.0 to replace UglifyJS for parsing the code to find Titanium symbols. We also started using Babel to minify source. This shipped with Titanium SDK 6.1.0.GA on May 26, 2017. This means that since 6.1.0, all device and distribution builds would be minified and strict mode would be introduced.\r\n\r\nThis explains why 6.3.0 works for simulator (i.e. no minify), but dist builds fail, as well as all 7.1.0 builds fail.\r\n\r\nWe didn't start transpiling the code until node-titanium-sdk@0.4.7, which shipped with 7.1.0.GA on March 14, 2018. Transpilation is disabled by default and can be enabled in the tiapp.xml.\r\n\r\nTitanium does not have a flag to disable strict mode, nor do I think Babel would allow you to disable strict mode.\r\n\r\nHowever, you can disable minification by passing in the {{\\-\\-skip\\-js\\-minify}} flag to the build command or toggle the checkbox in Studio when building an app for distribution.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2018-04-05T15:11:18.000+0000", "updated": "2018-04-05T15:11:18.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }