{ "id": "122208", "key": "TIMOB-15685", "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": "15707", "description": "2013 Sprint 23", "name": "2013 Sprint 23", "archived": true, "released": true, "releaseDate": "2013-11-15" }, { "id": "15709", "description": "2013 Sprint 23 Core", "name": "2013 Sprint 23 Core", "archived": true, "released": true, "releaseDate": "2013-11-15" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-11-14T01:32:53.000+0000", "created": "2013-11-07T19:48:01.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2013-11-15T10:27:08.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": "Unable to build for iOS Device\r\n\r\nI looked through where the error is happening and the device list seems to be empty \r\n\r\n{code}\r\n/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:184\r\n throw e;\r\n ^\r\nTypeError: Cannot read property 'length' of null\r\n at iOSBuilder.validate (/Users/euforic/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131106174044/iphone/cli/commands/_build.js:848:35)\r\n at exports.validatePlatformOptions (/Users/euforic/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131106174044/node_modules/titanium-sdk/lib/titanium.js:613:69)\r\n at /Users/euforic/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131106174044/cli/commands/build.js:190:19\r\n at callCommandValidate (/usr/local/lib/node_modules/titanium/lib/cli.js:821:7)\r\n at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:548:21\r\n at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:224:13\r\n at iterate (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:131:13)\r\n at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:142:25\r\n at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:226:17\r\n at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:553:34\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "CLI: Unable to build for iOS Device", "creator": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OSX 10.9 Mavericks\r\nTitanium SDK: 3.2.0.v20131106174044\r\nCLI: https://github.com/appcelerator/titanium/tree/4c816f21d7d9360659d77e9a6a994992ef880b72\r\nXcode: Version 5.0.1 (5A2053)", "comment": { "comments": [ { "id": "278692", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "That should not be possible. If you are doing a device build, you will at least have \"itunes sync\" in the list of devices. Do you have a device connected? Did you unplug it during build? Are you sure you're doing a device build? Are you building from Studio or CLI? Are you manually specifying the --device-id? Do you have \"ti config ios.autoSelectDevice\" to true or false?", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-11-07T20:07:33.000+0000", "updated": "2013-11-07T20:07:33.000+0000" }, { "id": "278714", "author": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Do you have a device connected?*\n\nYES iPhone 5\n\n*Did you unplug it during build?*\n\nNO\n\n*Are you sure you're doing a device build?*\n\nYES {code}$ ti build -p ios -T device{code}\n\n*Are you building from Studio or CLI?*\n\nCLI\n\n*Are you manually specifying the --device-id?*\n\nNO\n\n*Do you have \"ti config ios.autoSelectDevice\" to true or false?*\n\n{code} \n$ ti config ios.autoSelectDevice\n{code}\nresponds with \"ios.autoSelectDevice not found\"", "updateAuthor": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-07T21:55:08.000+0000", "updated": "2013-11-07T21:55:08.000+0000" }, { "id": "278717", "author": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~cbarber] \n- set \"ios.autoSelectDevice\" to TRUE and it fails still.\n- set \"ios.autoSelectDevice\" to FALSE and it prompts for device and works correctly.", "updateAuthor": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-07T21:58:52.000+0000", "updated": "2013-11-07T21:58:52.000+0000" }, { "id": "278718", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~csullivan] Ooooooooooh. Ooops. Gracias. Fix coming shortly. :)", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-11-07T22:00:57.000+0000", "updated": "2013-11-07T22:00:57.000+0000" }, { "id": "278731", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Pull request: https://github.com/appcelerator/titanium_mobile/pull/4930\n\nTo test:\n\n{code}\nti config ios.autoSelectDevice true\nti build -p ios -T device\n{code}", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-11-07T22:55:45.000+0000", "updated": "2013-11-07T22:55:45.000+0000" }, { "id": "279752", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the issue.\r\nClosing as fixed.\r\n\r\nAble to build successfully on iOS device from CLI.\r\n\r\nTested Environment:\r\n\r\nAppcelerator Studio: 3.2.0.201311140721\r\nSDK:3.2.0.v20131114184328\r\nalloy: 1.3.0\r\nacs: 1.0.7\r\nnpm: 1.3.2\r\ntitanium: 3.2.0\r\ntitanium-code-processor: 1.1.0\r\nXcode:5.0.2\r\nDevice: Iphone 5(v7.0.3)\r\nOS: Mac OSX 10.9\r\n", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-15T10:27:08.000+0000", "updated": "2013-11-15T10:27:08.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }