I´m using Appcelerator Studio V. 4.7.1 and I got a error message couldn´t connect to the device.
Below is my console log.
Appcelerator Command-Line Interface, version 5.5.1
Copyright (c) 2014-2016, Appcelerator, Inc. All Rights Reserved.
2016-10-17T12:30:22.129Z | TRACE | set environment to {'registry':'
https://software.appcelerator.com','security':'
https://security.appcelerator.com','baseurl':'
https://platform.appcelerator.com'}
2016-10-17T12:30:22.131Z | TRACE | checking credentials for existing session
2016-10-17T12:30:22.415Z | TRACE | Attempting to load session info from config file
2016-10-17T12:30:22.423Z | TRACE | check if session is invalidated
2016-10-17T12:30:23.457Z | TRACE | registry result 200 application/json undefined undefined false undefined
2016-10-17T12:30:23.478Z | TRACE | registry returned { expiry: 1477312223359 }
2016-10-17T12:30:23.478Z | TRACE | refresh session expiry to: 1477312223359
2016-10-17T12:30:23.480Z | TRACE | session expiry 1477312223359 false
2016-10-17T12:30:23.482Z | TRACE | Arrow Cloud config file: /Users/Usuario/.acs
2016-10-17T12:30:23.484Z | TRACE | found Arrow Cloud login { mid: 'fdefb89dfc069c4430771b3c9f1027fea1b70c0e',
publishPort: 443,
publishHost: '
https://admin.cloudapp-enterprise.appcelerator.com',
username: 'nilmarpublio@gmail.com',
cookie: [ 'connect.sid=s%3AHRgi6ZM6odaYMV98kqg5t6qv.jpCRRI8kSORVqAbYCIhcuW9mGHbzuTGNwHGl3Q7zct0; Path=/; Expires=Sat, 29 Oct 2016 14:15:13 GMT; HttpOnly' ],
defaultEP:
{ publishHost: '
https://admin.cloudapp-enterprise.appcelerator.com',
publishPort: 443 } } , checking nodeACSEndpoint=
https://admin.cloudapp-enterprise.appcelerator.com
2016-10-17T12:30:23.485Z | TRACE | Arrow Cloud cookie expiry [ 1477750513000 ]
2016-10-17T12:30:23.485Z | TRACE | session already loaded in opts.session
2016-10-17T12:30:23.487Z | TRACE | getCredentials() session:
{
'ipaddress': '192.168.0.100',
'username': 'nilmarpublio@gmail.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': 'fdefb89dfc069c4430771b3c9f1027fea1b70c0e',
'fingerprint_description': 'Mac OSX Serial Number: W80432QEDAS',
'org_id': 100001238,
'expiry': 1477312223359
}
2016-10-17T12:30:23.488Z | TRACE | loading plugins for command 'run'
2016-10-17T12:30:23.547Z | TRACE | run search paths:
[
'/Users/Usuario/.appcelerator/install/5.5.1/package',
'/Users/Usuario/.appcelerator/install/5.5.1/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/Usuario/.appcelerator/.npm/lib/node_modules'
]
2016-10-17T12:30:23.549Z | DEBUG | [PLUGIN-LOAD] 0ms /Users/Usuario/.appcelerator/install/5.5.1/package/appc.js
2016-10-17T12:30:23.880Z | DEBUG | [PLUGIN-LOAD] 329ms /Users/Usuario/.appcelerator/install/5.5.1/package/node_modules/appc-cli-titanium/appc.js
2016-10-17T12:30:23.880Z | DEBUG | run plugin: /Users/Usuario/.appcelerator/install/5.5.1/package/node_modules/appc-cli-titanium
2016-10-17T12:30:23.881Z | DEBUG | [PLUGIN-LOAD] 0ms /Users/Usuario/.appcelerator/install/5.5.1/package/node_modules/arrow/appc.js
2016-10-17T12:30:23.884Z | DEBUG | run plugin: /Users/Usuario/.appcelerator/install/5.5.1/package/node_modules/arrow
2016-10-17T12:30:23.887Z | TRACE | plugin 'arrow' failed its 'when' function check, skipping...
2016-10-17T12:30:23.888Z | TRACE | loading plugin 'titanium' for command 'run' CLI options via function
2016-10-17T12:30:23.889Z | TRACE | loading plugin 'titanium' for command 'run' CLI options via array
2016-10-17T12:30:23.892Z | TRACE | executing command 'run' with the following plugins:
['titanium']
2016-10-17T12:30:23.894Z | TRACE | Attempting to load session info from config file
2016-10-17T12:30:23.895Z | TRACE | check if session is invalidated
2016-10-17T12:30:24.643Z | TRACE | registry result 200 application/json undefined undefined false undefined
2016-10-17T12:30:24.643Z | TRACE | registry returned { expiry: 1477312224550 }
2016-10-17T12:30:24.643Z | TRACE | refresh session expiry to: 1477312224550
2016-10-17T12:30:24.645Z | TRACE | session expiry 1477312224550 false
2016-10-17T12:30:24.646Z | TRACE | session already loaded in opts.session
2016-10-17T12:30:24.673Z | DEBUG | Titanium Downloads Last Checked: 1476700681393
2016-10-17T12:30:24.932Z | TRACE | No project alloy hook; skipping update to 1.0.0
2016-10-17T12:30:26.175Z | ERROR | An uncaught exception was thrown!
2016-10-17T12:30:26.177Z | ERROR | Cannot read property 'devices' of undefined
Cannot read property 'devices' of undefined
2016-10-17T12:30:26.178Z | TRACE | TypeError: Cannot read property 'devices' of undefined
at iOSBuilder. (/Users/Usuario/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/iphone/cli/commands/_build.js:298:11)
at /Users/Usuario/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/ioslib/index.js:115:12
at /Users/Usuario/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/async/lib/async.js:721:13
at /Users/Usuario/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/async/lib/async.js:52:16
at done (/Users/Usuario/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/async/lib/async.js:241:17)
at /Users/Usuario/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/async/lib/async.js:44:16
at /Users/Usuario/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/async/lib/async.js:718:17
at /Users/Usuario/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/async/lib/async.js:167:37
at /Users/Usuario/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/ioslib/index.js:85:6
at /Users/Usuario/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/ioslib/lib/device.js:51:12
at Object.devices (/Users/Usuario/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/ioslib/node_modules/node-ios-device/ios-device.js:58:12)
at /Users/Usuario/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/ioslib/lib/device.js:48:13
at /Users/Usuario/Library/Application Support/Titanium/mobilesdk/osx/5.2.2.GA/node_modules/ioslib/lib/utilities.js:55:9
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
You are using the Appcelerator CLI 5.5.1 with a SDK 5.2.2.GA which obviously won't work. Update your SDK and ensure that the tiapp.xml used the 5.5.1.GA. Clean and build again, the error will disappear. Thx!