{ "id": "136023", "key": "TIMOB-17604", "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": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-09-15T19:01:17.000+0000", "created": "2014-09-02T22:54:18.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-3.4.0" ], "versions": [ { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2014-09-15T19:01:17.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": "13103", "name": "CLI", "description": "Node-based command line interface" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h5.Description:\r\n1. Build an app for multiple IOS devices at the same time(I did on 2 devices) using the \"Run -> On all IOS devices\" option in studio.\r\n\r\nor\r\n\r\n1. Build an app for multiple IOS devices at the same time(I did on 2 devices) using the \"all\" flag for device id in CLI.\r\n\r\nh5. Actual result:\r\n1. We get the error below & the build fails:\r\n{code}\r\n/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:185\r\n throw e;\r\n ^\r\nReferenceError: i is not defined\r\n at iOSBuilder. (/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.v20140829184521/iphone/cli/commands/_build.js:1112:79)\r\n at Array.forEach (native)\r\n at iOSBuilder.validate (/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.v20140829184521/iphone/cli/commands/_build.js:1110:32)\r\n at exports.validatePlatformOptions (/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.v20140829184521/node_modules/titanium-sdk/lib/titanium.js:596:69)\r\n at /Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.v20140829184521/cli/commands/build.js:206:19\r\n at callCommandValidate (/usr/local/lib/node_modules/titanium/lib/cli.js:858:7)\r\n at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:551:21\r\n at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:227:13\r\n at iterate (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:134:13)\r\n at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:145:25\r\n---------------------------------------------\r\n at exports.execFile (child_process.js:702:9)\r\n at exports.exec (child_process.js:589:18)\r\n at /Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.v20140829184521/node_modules/node-appc/lib/environ.js:251:3\r\n at /Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.v20140829184521/node_modules/node-appc/node_modules/async/lib/async.js:254:17\r\n at /Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.v20140829184521/node_modules/node-appc/node_modules/async/lib/async.js:157:25\r\n at /Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.v20140829184521/node_modules/node-appc/node_modules/async/lib/async.js:251:21\r\n at /Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.v20140829184521/node_modules/node-appc/node_modules/async/lib/async.js:615:34\r\n at /Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.v20140829184521/node_modules/node-appc/lib/environ.js:218:7\r\n{code}\r\n\r\nh5. Expected Result:\r\n1. The app should build successfully on all IOS the devices attached", "attachment": [], "flagged": false, "summary": "iOS: CLI: Building for all IOS devices throws \"ReferenceError: i is not defined\"", "creator": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Environment:\r\nAppc Studio : 3.4.0.201408291834\r\nTi SDK : 3.4.0.v20140829184521\r\nMac OSX : 10.9.4\r\nAlloy : 1.5.0-dev\r\nCLI - 3.4.0-dev\r\nCode Processor: 1.1.1\r\nXcode 6 beta 7\r\niphone 4S - IOS 8.0b5\r\nIpad mini - IOS 8.0b5", "closedSprints": [ { "id": 208, "state": "closed", "name": "2014 Sprint 18 Tooling", "startDate": "2014-09-02T20:24:55.144Z", "endDate": "2014-09-13T00:00:00.000Z", "completeDate": "2014-09-15T20:08:39.957Z", "originBoardId": 121 } ], "comment": { "comments": [ { "id": "321610", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Master: https://github.com/appcelerator/titanium_mobile/pull/6013\r\n3_4_X: https://github.com/appcelerator/titanium_mobile/pull/6014", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-09-03T17:07:33.000+0000", "updated": "2014-09-03T17:07:33.000+0000" }, { "id": "321611", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "To test, connect an iOS 6.x or 7.x device, then set the min-ios-ver in the tiapp.xml to 8.0 and run a build with {{\\-\\-device\\-id all}}.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-09-03T17:09:04.000+0000", "updated": "2014-09-03T17:09:04.000+0000" }, { "id": "321639", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Tested with Xcode 6 Beta 7. With min-ios-ver set to 8.0 with an iOS7.1.2 device, I get the errors/warning messages expected and the app isn't installed. If I remove the min-ios-ver, the app is installed to the device.\r\n\r\nPRs merged.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-09-03T19:16:17.000+0000", "updated": "2014-09-03T19:16:17.000+0000" }, { "id": "322012", "author": { "name": "kagrawal", "key": "kagrawal", "displayName": "Khushbu Agrawal", "active": true, "timeZone": "Asia/Shanghai" }, "updateAuthor": { "name": "kagrawal", "key": "kagrawal", "displayName": "Khushbu Agrawal", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2014-09-05T11:03:50.000+0000", "updated": "2014-09-05T11:03:50.000+0000" }, { "id": "322189", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Issue still occurs in both CLI and Studio on: \r\n\r\nMac OSX 10.9.4\r\nAppcelerator Studio, build: 3.4.0.201409021758\r\nTitanium SDK build: 3.4.0.v20140905152516\r\nTitanium CLI, build: 3.4.0-beta\r\nAlloy: 1.5.0-beta2\r\nXcode6-Beta7\r\niOS Device iPhone 5(8.05b), iPhone 4s(8.05b)", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2014-09-06T02:59:59.000+0000", "updated": "2014-09-06T02:59:59.000+0000" }, { "id": "322403", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Master pull request: https://github.com/appcelerator/titanium_mobile/pull/6031\r\n3_4_X pull request: https://github.com/appcelerator/titanium_mobile/pull/6032\r\n\r\nTo test, connect an iOS device, then run {{ti build -p ios -T device --device-id all}}. It should not error out.\r\n\r\nAlso try specifying a bad iOS device: {{ti build -p ios -T device --device-id foo}}", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-09-08T23:25:16.000+0000", "updated": "2014-09-08T23:25:16.000+0000" }, { "id": "322407", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Works as described. PRs merged", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-09-08T23:46:29.000+0000", "updated": "2014-09-08T23:46:29.000+0000" }, { "id": "322508", "author": { "name": "kagrawal", "key": "kagrawal", "displayName": "Khushbu Agrawal", "active": true, "timeZone": "Asia/Shanghai" }, "body": "When I ran this \"ti build -p ios -T device --device-id all\" command ,the application built and installed successfully on all the iOS devices.\r\nBut its giving me the below error message along with it for both CLI as well as the Studio.The below error message should not be shown.\r\n\r\n{code}\r\n[TRACE] ** BUILD SUCCEEDED **\r\n[INFO] Installing app on device: AppcS iPhone5S\r\n[INFO] App successfully installed on device: AppcS iPhone5S\r\n[INFO] Installing app on device: AppC S iPad Gen4\r\nPlease manually launch the application or press CTRL-C to quit\r\n\r\n[INFO] App successfully installed on device: AppC S iPad Gen4\r\n[INFO] Installing app on device: All Devices\r\n[ERROR] Device 'all' not connected\r\n[ERROR] Project failed to build after 25s 943ms\r\n{code}\r\n\r\nTested with below Environment:-\r\n1. Mac OSX 10.9.4 \r\n2. Appcelerator Studio, build: 3.4.0.201409032106\r\n3. Titanium SDK, build: 3.4.0.v20140908164913\r\n4. Titanium CLI, build: 3.4.0-beta\r\n5. Alloy: 1.5.0-beta2\r\n6. Xcode 6 beta 7\r\n7. iOS SDK 8.0\r\n8. iPhone 5S (v8.0 beta 5) \r\n9. iPad Gen 4 (v8.0 beta 5)\r\n\r\nWith the a bad iOS device, its working as per the expectation.", "updateAuthor": { "name": "kagrawal", "key": "kagrawal", "displayName": "Khushbu Agrawal", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2014-09-09T11:43:22.000+0000", "updated": "2014-09-09T11:43:22.000+0000" }, { "id": "322627", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Master pull request: https://github.com/appcelerator/titanium_mobile/pull/6037\r\n3_4_X pull request: https://github.com/appcelerator/titanium_mobile/pull/6037\r\n\r\nTo test, connect 2 iOS devices, then build an app for device id \"all\": {{ti build -p ios -T device --device-id all}}", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-09-09T20:41:09.000+0000", "updated": "2014-09-09T20:41:09.000+0000" }, { "id": "322650", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Installed to two iPads running iOS 7.1 using the command as described. PRs merged (note that the PRs are 6037 and 6038)", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2014-09-09T21:42:50.000+0000", "updated": "2014-09-09T21:42:50.000+0000" }, { "id": "322705", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified fix on: \r\n\r\nMac OSX 10.9.4\r\nAppcelerator Studio, build: 3.4.0.201409081810\r\nTitanium SDK build: 3.4.0.v20140909144631\r\nTitanium CLI, build: 3.4.0-rc\r\nAlloy: 1.5.0-beta2\r\niOS Devices iPad Mini (iOS8 GM Seed), iPhone 4s (iOS8 GM Seed), iPhone 4s (7.1.2)\r\n\r\nCreated a new project and installed to an iPhone 4s and iPad Mini both running iOS8 GM Seed and also the iPad Mini running iOS8 GM Seed and an iPhone 4s running 7.1.2 in both CLI and studio. Was able to install to multiple devices in all scenarios.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2014-09-10T01:33:48.000+0000", "updated": "2014-09-10T01:34:43.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }