{ "id": "102433", "key": "AC-2683", "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": "2013-03-14T23:28:39.000+0000", "created": "2012-09-30T04:50:43.000+0000", "labels": [ "distribution", "ios", "javascript" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:41: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": "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": "This was a real head scratcher.\r\nPosted on Q&A as \r\nhttp://developer.appcelerator.com/question/142848/distribution-build-for-ios6-failing-with-213-sdks-including-rc--rc2\r\n\r\nThis happens ONLY when you build for \"Distribute - Apple iTunes Store\"\r\nThe same code runs on iPhone emulator, Android emulator, and build for Distribution on Android.\r\n\r\nWhen you build for Distribution for Apple - you get this error on console:\r\n\r\n[INFO] Performing clean build\r\n[INFO] Compiling localization files\r\n[DEBUG] compiled ios file: /Users/jrf/Workspace/iPumpkin/build/iphone/build/Release-iphoneos/iPumpkin.app/en.lproj/Localizable.strings\r\n[ERROR] \r\n[ERROR] Error: Traceback (most recent call last):\r\n File \"/Library/Application Support/Titanium/mobilesdk/osx/2.1.3.v20120927181611/iphone/builder.py\", line 1551, in main\r\n execute_xcode(\"iphoneos%s\" % iphone_version,args,False)\r\n File \"/Library/Application Support/Titanium/mobilesdk/osx/2.1.3.v20120927181611/iphone/builder.py\", line 1231, in execute_xcode\r\n output = run.run(args,False,False,o)\r\n File \"/Library/Application Support/Titanium/mobilesdk/osx/2.1.3.v20120927181611/iphone/run.py\", line 41, in run\r\n sys.exit(rc)\r\nSystemExit: 65\r\n\r\nThis was in an App with over 20,000 lines of JS so once we had determined that this error was specific to this App, we removed files from the App until we found the one that caused the error. Then we removed suspect statements until we found the one. And you won't believe, but it is true.\r\n\r\na = b\r\n / c;\r\n\r\nThat's it. a = b on one line, and / c; on the second line.\r\n\r\nThe actual statement was more complex, but the gist is that the parser accepts \r\na = b \r\nas a valid statement and the croaks on \r\n/ c;\r\nas a malformed comment or statement.\r\n\r\nThis arose because the formatter had split the statement on to separate lines with the division operator at the beginning of the second line.\r\n\r\nBTW, \r\na = ( b\r\n / c );\r\nalso doesn't work.", "attachment": [], "flagged": false, "summary": "Parsing Bug in Building for iOS Distribution", "creator": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "MacOS Lion, Titanium Studio, build: 2.1.2.201208301612, any 2.x SDK", "comment": { "comments": [ { "id": "242345", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 3.0.2 GA and can't reproduce. This works:\r\n\r\n{code}var win = Ti.UI.createWindow({\r\n\tbackgroundColor : \"#FFF\"\r\n});\r\n\r\nvar a = 10;\r\nvar b = 10;\r\nvar c = 2;\r\n\r\na = b \r\n/ c;\r\n\r\nTi.API.info(\"A = \" + a);\r\n\r\nwin.open();{code}\r\n\r\nSince this report is old now, I assume it was fixed.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-14T23:28:39.000+0000", "updated": "2013-03-14T23:28:39.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }