[TIMOB-15685] CLI: Unable to build for iOS Device
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-11-14T01:32:53.000+0000 |
Affected Version/s | Release 3.2.0 |
Fix Version/s | 2013 Sprint 23, 2013 Sprint 23 Core, Release 3.2.0 |
Components | CLI, iOS |
Labels | n/a |
Reporter | Christian Sullivan |
Assignee | Chris Barber |
Created | 2013-11-07T19:48:01.000+0000 |
Updated | 2013-11-15T10:27:08.000+0000 |
Description
Unable to build for iOS Device
I looked through where the error is happening and the device list seems to be empty
/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:184
throw e;
^
TypeError: Cannot read property 'length' of null
at iOSBuilder.validate (/Users/euforic/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131106174044/iphone/cli/commands/_build.js:848:35)
at exports.validatePlatformOptions (/Users/euforic/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131106174044/node_modules/titanium-sdk/lib/titanium.js:613:69)
at /Users/euforic/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.v20131106174044/cli/commands/build.js:190:19
at callCommandValidate (/usr/local/lib/node_modules/titanium/lib/cli.js:821:7)
at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:548:21
at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:224:13
at iterate (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:131:13)
at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:142:25
at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:226:17
at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:553:34
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?
*Do you have a device connected?* YES iPhone 5 *Did you unplug it during build?* NO *Are you sure you're doing a device build?* YES
*Are you building from Studio or CLI?* CLI *Are you manually specifying the --device-id?* NO *Do you have "ti config ios.autoSelectDevice" to true or false?*
responds with "ios.autoSelectDevice not found"
[~cbarber] - set "ios.autoSelectDevice" to TRUE and it fails still. - set "ios.autoSelectDevice" to FALSE and it prompts for device and works correctly.
[~csullivan] Ooooooooooh. Ooops. Gracias. Fix coming shortly. :)
Pull request: https://github.com/appcelerator/titanium_mobile/pull/4930 To test:
Verified the issue. Closing as fixed. Able to build successfully on iOS device from CLI. Tested Environment: Appcelerator Studio: 3.2.0.201311140721 SDK:3.2.0.v20131114184328 alloy: 1.3.0 acs: 1.0.7 npm: 1.3.2 titanium: 3.2.0 titanium-code-processor: 1.1.0 Xcode:5.0.2 Device: Iphone 5(v7.0.3) OS: Mac OSX 10.9