Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15685] CLI: Unable to build for iOS Device

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2013-11-14T01:32:53.000+0000
Affected Version/sRelease 3.2.0
Fix Version/s2013 Sprint 23, 2013 Sprint 23 Core, Release 3.2.0
ComponentsCLI, iOS
Labelsn/a
ReporterChristian Sullivan
AssigneeChris Barber
Created2013-11-07T19:48:01.000+0000
Updated2013-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

Comments

  1. Chris Barber 2013-11-07

    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?
  2. Christian Sullivan 2013-11-07

    *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
    $ ti build -p ios -T device
    *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?*
     
       $ ti config ios.autoSelectDevice
       
    responds with "ios.autoSelectDevice not found"
  3. Christian Sullivan 2013-11-07

    [~cbarber] - set "ios.autoSelectDevice" to TRUE and it fails still. - set "ios.autoSelectDevice" to FALSE and it prompts for device and works correctly.
  4. Chris Barber 2013-11-07

    [~csullivan] Ooooooooooh. Ooops. Gracias. Fix coming shortly. :)
  5. Chris Barber 2013-11-07

    Pull request: https://github.com/appcelerator/titanium_mobile/pull/4930 To test:
       ti config ios.autoSelectDevice true
       ti build -p ios -T device
       
  6. Priya Agarwal 2013-11-15

    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

JSON Source