Project: titanium
Issue TIMOB-23285: Unable to build for Android and iOS using node 6.0 with 5.2.2.GA & latest 5.3.0 components
h5.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. h5.Actual Results: 1. The build fails with logs below: {code} 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": "", "session": "", "nonce": "", "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": "", "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. (/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 {code} 2. Same issue is seen with latest components & SDK. h5.Expected Results: 1. The build should not fail.
Story points: 5