{ "id": "151350", "key": "AC-374", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2015-11-11T05:08:54.000+0000", "created": "2015-09-21T14:02:58.000+0000", "labels": [ "deploy", "device" ], "versions": [], "issuelinks": [ { "id": "49363", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "152080", "key": "AC-466", "fields": { "summary": "iOS 9 build fails to deploy on device", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-11-11T05:08:54.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": "14552", "name": "Appcelerator CLI", "description": "Please enter tickets related to Tooling and the CLI here" }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "I got the following error when I tried to deploy my app on the device\r\n\r\n[INFO] : Processing JavaScript files\r\n[ERROR] : Failed to parse /Users/Documents/Appcelerator_Studio_Workspace/PRJ/Resources/js/About.js\r\n[ERROR] : Unexpected token: eof (undefined) [line 5, column 19564]\r\nTRACE | titanium exited with exit code 1\r\nERROR | Error: ti run exited with error code 1\r\n at ChildProcess. (/Users/mydrive/.appcelerator/install/5.0.1/package/node_modules/appc-cli-titanium/plugins/run.js:89:66)\r\n at ChildProcess.emit (events.js:117:20)\r\n at Process.ChildProcess._handle.onexit (child_process.js:820:12)\r\n\r\nThe error on line 5 mentioned is actually a commented line. Its throwing errors on commented lines.", "attachment": [], "flagged": false, "summary": "iOS 9 build fails to deploy on device", "creator": { "name": "zarirbhesania@gmail.com", "key": "zarirbhesania@gmail.com", "displayName": "Zarir Bhesania", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "zarirbhesania@gmail.com", "key": "zarirbhesania@gmail.com", "displayName": "Zarir Bhesania", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator Studio 4.3.0.201509151348, Titanum sdk 5.0.0, CLI 5.0.1, Mac OSX 10.10.5", "comment": { "comments": [ { "id": "364604", "author": { "name": "ahossain", "key": "ahossain", "displayName": "Amimul Hossain", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~zarirbhesania@gmail.com], Can you attach the codes in \"About.js\" file. Thanks.", "updateAuthor": { "name": "ahossain", "key": "ahossain", "displayName": "Amimul Hossain", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2015-09-22T10:15:20.000+0000", "updated": "2015-09-22T10:15:20.000+0000" }, { "id": "364609", "author": { "name": "zarirbhesania@gmail.com", "key": "zarirbhesania@gmail.com", "displayName": "Zarir Bhesania", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I figured that the compiler is not accepting inline comment \"//\" in the code. Block comments are accepted. Check the below code:\r\n\r\nfunction About() {\r\n \r\n // About View\r\n \r\n var _aboutGlobalView = Ti.UI.createScrollView({\r\n top : 0,\r\n bottom : 0,\r\n left : 0,\r\n width : platformWidth,\r\n right : 0,\r\n backgroundColor : TiFonts.FontStyle('whiteFont'),\r\n disableBounce : true\r\n });\r\n\r\n return _aboutGlobalView;\r\n};\r\n\r\nmodule.exports = About;", "updateAuthor": { "name": "zarirbhesania@gmail.com", "key": "zarirbhesania@gmail.com", "displayName": "Zarir Bhesania", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-09-22T11:12:47.000+0000", "updated": "2015-09-22T11:12:47.000+0000" }, { "id": "364610", "author": { "name": "zarirbhesania@gmail.com", "key": "zarirbhesania@gmail.com", "displayName": "Zarir Bhesania", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The same issue comes on iOS simulator and when trying to deploy the app on my Nexus 4", "updateAuthor": { "name": "zarirbhesania@gmail.com", "key": "zarirbhesania@gmail.com", "displayName": "Zarir Bhesania", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-09-22T11:14:37.000+0000", "updated": "2015-09-22T11:14:37.000+0000" }, { "id": "364983", "author": { "name": "zarirbhesania@gmail.com", "key": "zarirbhesania@gmail.com", "displayName": "Zarir Bhesania", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Figured out a wierd test case, this error only comes in About.js file in my project. If I remove this file it works fine. If I put it back again it throws an error on the commented line.", "updateAuthor": { "name": "zarirbhesania@gmail.com", "key": "zarirbhesania@gmail.com", "displayName": "Zarir Bhesania", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-09-25T07:58:18.000+0000", "updated": "2015-09-25T07:58:18.000+0000" }, { "id": "365067", "author": { "name": "ahossain", "key": "ahossain", "displayName": "Amimul Hossain", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~zarirbhesania@gmail.com], In your code \"backgroundColor : TiFonts.FontStyle('whiteFont')\" is causing the error. No such thing as \"TiFonts\" also u can not set background color like this . Thanks. ", "updateAuthor": { "name": "ahossain", "key": "ahossain", "displayName": "Amimul Hossain", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2015-09-28T06:54:58.000+0000", "updated": "2015-09-28T06:54:58.000+0000" }, { "id": "365068", "author": { "name": "zarirbhesania@gmail.com", "key": "zarirbhesania@gmail.com", "displayName": "Zarir Bhesania", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Amimul,\r\n\r\nThen why this error comes only on about.js file. If I remove this file the app builds fine. I have other files too using this property. *TiFonts.FontStyle('whiteFont')* is basically calling a common function for white font color. Its a require function call. ", "updateAuthor": { "name": "zarirbhesania@gmail.com", "key": "zarirbhesania@gmail.com", "displayName": "Zarir Bhesania", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-09-28T07:31:10.000+0000", "updated": "2015-09-28T07:31:10.000+0000" }, { "id": "365069", "author": { "name": "zarirbhesania@gmail.com", "key": "zarirbhesania@gmail.com", "displayName": "Zarir Bhesania", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Even if I replace this *TiFonts.FontStyle('whiteFont')* with *\"#FFFFFF\"*, I am still getting a build error.", "updateAuthor": { "name": "zarirbhesania@gmail.com", "key": "zarirbhesania@gmail.com", "displayName": "Zarir Bhesania", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-09-28T07:32:09.000+0000", "updated": "2015-09-28T07:32:09.000+0000" }, { "id": "365349", "author": { "name": "ken@walkthelot.com", "key": "ken@walkthelot.com", "displayName": "Ken Rucker", "active": true, "timeZone": "America/New_York" }, "body": "I am experiencing this in Android too. Any comments that are:\r\n\r\n// Some Comment\r\n\r\nFail. And I have to convert them to \r\n\r\n/* Some Comment */\r\n\r\nWorks fine in earlier versions. This bug occurs only in 5.0.x", "updateAuthor": { "name": "ken@walkthelot.com", "key": "ken@walkthelot.com", "displayName": "Ken Rucker", "active": true, "timeZone": "America/New_York" }, "created": "2015-09-30T03:29:21.000+0000", "updated": "2015-09-30T03:29:21.000+0000" }, { "id": "369373", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~zarirbhesania@gmail.com], How are you adding your module to your project?\r\n\r\n{code}\r\nvar ex = require('About');\r\nvar data = new ex();\r\n{code}\r\n\r\nAlso, your file name should be \"About.js\". Check if you put all this right. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2015-11-09T06:40:43.000+0000", "updated": "2015-11-09T06:40:43.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }