Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-23285

Unable to build for Android and iOS using node 6.0 with 5.2.2.GA & latest 5.3.0 components

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 5.3.0, Release 5.2.2
    • Fix Version/s: Release 5.4.0
    • Component/s: Tooling
    • Labels:
    • Environment:
    • Story Points:
      5
    • Sprint:
      2016 Sprint 10 Tooling

      Description

      Steps to reproduce:

      1. Install node 6.0 & use components mentioned in the environment.
      2. Using studio build an android or ios app to device & emulator/simulator.

      Actual Results:

      1. The build fails with logs below:

      Appcelerator Command-Line Interface, version 5.2.2
      Copyright (c) 2014-2016, Appcelerator, Inc.  All Rights Reserved.
      2016-04-27T23:27:59.471Z | TRACE  | set environment to {"registry":"https://software.appcelerator.com","security":"https://security.appcelerator.com","baseurl":"https://platform.appcelerator.com"}
      2016-04-27T23:27:59.472Z | TRACE  | checking credentials for existing session
      2016-04-27T23:27:59.616Z | TRACE  | Attempting to load session info from config file
      2016-04-27T23:27:59.621Z | TRACE  | check if session is invalidated
      2016-04-27T23:27:59.830Z | TRACE  | session expiry 1462220900328 false
      2016-04-27T23:27:59.831Z | TRACE  | Arrow Cloud config file: /Users/lokeshchoudhary/.acs
      2016-04-27T23:27:59.846Z | TRACE  | found Arrow Cloud login { mid: 'bef35912719c03b47a3f16fecf654742a42d9010',
        publishPort: 443,
        publishHost: 'https://admin.cloudapp-enterprise.appcelerator.com',
        username: 'lchoudhary@appcelerator.com',
        cookie: [ 'connect.sid=s%3AgQRieH8zJPK4EVZBWJ9Z%2BpU2.y8Xd0GfPjSJdSUoAlU0RUVV0FHFmVcNmhKeOapJjqac; Path=/; Expires=Mon, 09 May 2016 20:28:22 GMT; HttpOnly' ],
        defaultEP: 
         { publishHost: 'https://admin.cloudapp-enterprise.appcelerator.com',
           publishPort: 443 } } , checking nodeACSEndpoint= https://admin.cloudapp-enterprise.appcelerator.com
      2016-04-27T23:27:59.847Z | TRACE  | Arrow Cloud cookie expiry [ 1462825702000 ]
      2016-04-27T23:27:59.847Z | TRACE  | session already loaded in opts.session
      2016-04-27T23:27:59.848Z | TRACE  | getCredentials() session:
      {
        "ipaddress": "10.0.12.110",
        "username": "lchoudhary@appcelerator.com",
        "password": "<OMITTED>",
        "session": "<OMITTED>",
        "nonce": "<OMITTED>",
        "environment": {
          "name": "production",
          "isProduction": true,
          "acsBaseUrl": "https://api.cloud.appcelerator.com",
          "acsAuthBaseUrl": "https://secure-identity.cloud.appcelerator.com",
          "nodeACSEndpoint": "https://admin.cloudapp-enterprise.appcelerator.com"
        },
        "token": "<OMITTED>",
        "fingerprint": "bef35912719c03b47a3f16fecf654742a42d9010",
        "fingerprint_description": "Mac OSX Serial Number: C02J54GWDV35",
        "org_id": 100000675,
        "expiry": 1462220900328
      }
      2016-04-27T23:27:59.849Z | TRACE  | loading plugins for command "run"
      2016-04-27T23:27:59.899Z | TRACE  | run search paths:
      [
        "/Users/lokeshchoudhary/.appcelerator/install/5.2.2/package",
        "/Users/lokeshchoudhary/.appcelerator/install/5.2.2/package/node_modules",
        "/Applications/Appcelerator Studio/AppceleratorStudio.app/Contents/MacOS/node_modules",
        "/Applications/Appcelerator Studio/AppceleratorStudio.app/Contents/node_modules",
        "/Applications/Appcelerator Studio/AppceleratorStudio.app/node_modules",
        "/Applications/Appcelerator Studio/node_modules",
        "/Applications/node_modules",
        "/node_modules",
        "/Users/lokeshchoudhary/.appcelerator/.npm/lib/node_modules"
      ]
      2016-04-27T23:27:59.900Z | DEBUG  | [PLUGIN-LOAD] 0ms /Users/lokeshchoudhary/.appcelerator/install/5.2.2/package/appc.js
      (node:70951) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
      2016-04-27T23:28:00.009Z | DEBUG  | [PLUGIN-LOAD] 108ms /Users/lokeshchoudhary/.appcelerator/install/5.2.2/package/node_modules/appc-cli-titanium/appc.js
      2016-04-27T23:28:00.010Z | DEBUG  | run plugin: /Users/lokeshchoudhary/.appcelerator/install/5.2.2/package/node_modules/appc-cli-titanium
      2016-04-27T23:28:00.014Z | DEBUG  | [PLUGIN-LOAD] 1ms /Users/lokeshchoudhary/.appcelerator/install/5.2.2/package/node_modules/arrow/appc.js
      2016-04-27T23:28:00.017Z | DEBUG  | run plugin: /Users/lokeshchoudhary/.appcelerator/install/5.2.2/package/node_modules/arrow
      2016-04-27T23:28:00.020Z | TRACE  | plugin "arrow" failed its "when" function check, skipping...
      2016-04-27T23:28:00.021Z | TRACE  | loading plugin "titanium" for command "run" CLI options via function
      2016-04-27T23:28:00.023Z | TRACE  | loading plugin "titanium" for command "run" CLI options via array
      2016-04-27T23:28:00.025Z | TRACE  | executing command "run" with the following plugins:
      ["titanium"]
      2016-04-27T23:28:00.026Z | TRACE  | Attempting to load session info from config file
      2016-04-27T23:28:00.027Z | TRACE  | check if session is invalidated
      2016-04-27T23:28:00.144Z | TRACE  | session expiry 1462220900328 false
      2016-04-27T23:28:00.144Z | TRACE  | session already loaded in opts.session
      2016-04-27T23:28:00.146Z | DEBUG  | Titanium Downloads Last Checked: 1461798168878
      2016-04-27T23:28:00.294Z | TRACE  | No project alloy hook; skipping update to 1.0.0
      2016-04-27T23:28:01.228Z | ERROR  | An uncaught exception was thrown!
      Cannot read property 'devices' of undefined
      2016-04-27T23:28:01.229Z | ERROR  | Cannot read property 'devices' of undefined
      2016-04-27T23:28:01.229Z | TRACE  | TypeError: Cannot read property 'devices' of undefined
          at iOSBuilder.<anonymous> (/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/iphone/cli/commands/_build.js:298:11)
          at /Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/ioslib/index.js:115:12
          at /Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/async/lib/async.js:721:13
          at /Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/async/lib/async.js:52:16
          at done (/Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/async/lib/async.js:241:17)
          at /Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/async/lib/async.js:44:16
          at /Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/async/lib/async.js:718:17
          at /Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/async/lib/async.js:167:37
          at /Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/ioslib/index.js:85:6
          at /Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/ioslib/lib/device.js:51:12
      

      2. Same issue is seen with latest components & SDK.

      Expected Results:

      1. The build should not fail.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cbarber Chris Barber
                Reporter:
                lchoudhary Lokesh Choudhary
                Reviewer:
                Feon Sua Xin Miao
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-9687
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code