Steps to Reproduce
I am executing any project on my appcelerator studio with the same result. This just started happening. I was attempting to load modules into appcelerator, not sure if I accidently moved some important file or something. Because I get this same result no matter what project I execute I assume I have something wrong with my js or something?
Actual Result
once execution begins it prints some things out to console, then just stops with no error and my app does not run:
Appcelerator Command-Line Interface, version 5.2.0
Copyright (c) 2014-2016, Appcelerator, Inc. All Rights Reserved.
2016-03-24T13:22:22.365Z | TRACE | set environment to {'registry':'
https://software.appcelerator.com','security':'
https://security.appcelerator.com','baseurl':'
https://platform.appcelerator.com'}
2016-03-24T13:22:22.367Z | TRACE | checking credentials for existing session
2016-03-24T13:22:22.550Z | TRACE | Attempting to load session info from config file
2016-03-24T13:22:22.555Z | TRACE | check if session is invalidated
2016-03-24T13:22:22.977Z | TRACE | session expiry 1459257614875 false
2016-03-24T13:22:22.978Z | TRACE | Arrow Cloud config file: /Users/michael.kellogg/.acs
2016-03-24T13:22:22.980Z | TRACE | found Arrow Cloud login { mid: 'c15e9f83b8d824452e443bb96ca8076ba897d3ab',
publishPort: 443,
publishHost: '
https://admin.cloudapp-enterprise.appcelerator.com',
username: 'mkellogg91@gmail.com',
cookie: [ 'connect.sid=s%3A8lHSfAts5LsxQbfTpqzzX%2B6t.zrO2ABEKS8frttymuCHL2FmUfATz2BExqV7%2BY1%2FgGE8; Path=/; Expires=Tue, 05 Apr 2016 13:20:17 GMT; HttpOnly' ],
defaultEP:
{ publishHost: '
https://admin.cloudapp-enterprise.appcelerator.com',
publishPort: 443 } } , checking nodeACSEndpoint=
https://admin.cloudapp-enterprise.appcelerator.com
2016-03-24T13:22:22.981Z | TRACE | Arrow Cloud cookie expiry [ 1459862417000 ]
2016-03-24T13:22:22.981Z | TRACE | session already loaded in opts.session
2016-03-24T13:22:22.983Z | TRACE | getCredentials() session:
{
'ipaddress': '192.168.1.151',
'username': 'mkellogg91@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': 'c15e9f83b8d824452e443bb96ca8076ba897d3ab',
'fingerprint_description': 'Mac OSX Serial Number: C02Q60S1G8WL',
'org_id': 100094648,
'expiry': 1459257614875
}
2016-03-24T13:22:22.983Z | TRACE | loading plugins for command 'run'
2016-03-24T13:22:23.014Z | TRACE | run search paths:
[
'/Users/michael.kellogg/.appcelerator/install/5.2.0/package',
'/Users/michael.kellogg/.appcelerator/install/5.2.0/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/michael.kellogg/.appcelerator/.npm/lib/node_modules'
]
2016-03-24T13:22:23.015Z | DEBUG | [PLUGIN-LOAD] 0ms /Users/michael.kellogg/.appcelerator/install/5.2.0/package/appc.js
2016-03-24T13:22:23.097Z | DEBUG | [PLUGIN-LOAD] 81ms /Users/michael.kellogg/.appcelerator/install/5.2.0/package/node_modules/appc-cli-titanium/appc.js
2016-03-24T13:22:23.098Z | DEBUG | run plugin: /Users/michael.kellogg/.appcelerator/install/5.2.0/package/node_modules/appc-cli-titanium
2016-03-24T13:22:23.100Z | DEBUG | [PLUGIN-LOAD] 1ms /Users/michael.kellogg/.appcelerator/install/5.2.0/package/node_modules/arrow/appc.js
2016-03-24T13:22:23.103Z | DEBUG | run plugin: /Users/michael.kellogg/.appcelerator/install/5.2.0/package/node_modules/arrow
2016-03-24T13:22:23.106Z | TRACE | plugin 'arrow' failed its 'when' function check, skipping...
2016-03-24T13:22:23.107Z | TRACE | loading plugin 'titanium' for command 'run' CLI options via function
2016-03-24T13:22:23.108Z | TRACE | loading plugin 'titanium' for command 'run' CLI options via array
2016-03-24T13:22:23.111Z | TRACE | executing command 'run' with the following plugins:
['titanium']
2016-03-24T13:22:23.113Z | TRACE | Attempting to load session info from config file
2016-03-24T13:22:23.114Z | TRACE | check if session is invalidated
2016-03-24T13:22:23.448Z | TRACE | session expiry 1459257614875 false
2016-03-24T13:22:23.449Z | TRACE | session already loaded in opts.session
2016-03-24T13:22:23.450Z | DEBUG | Titanium Downloads Last Checked: 1458746656480
3/24/2016, 9:22:25 AM
Operating System
Name = Mac OS X
Version = 10.10.5
Architecture = 64bit
# CPUs = 8
Memory = 17179869184
Node.js
Node.js Version = 0.12.10
npm Version = 2.14.9
Titanium CLI
CLI Version = 5.0.6
Titanium SDK
SDK Version = 5.1.2.GA
SDK Path = /Users/michael.kellogg/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA
Target Platform = iphone
Command
/usr/local/bin/node /Users/michael.kellogg/.appcelerator/install/5.2.0/package/node_modules/titanium/lib/titanium.js build run --platform ios --log-level trace --sdk 5.1.2.GA --project-dir /Users/michael.kellogg/Documents/Appcelerator_Studio_Workspace/K2M_App --target simulator --ios-version 9.2 --device-family universal --deploy-type development --sim-type ipad --sim-version 9.2 --device-id CD2810D2-341D-463B-98F2-15F7D09F0D92 --skip-js-minify --no-colors --no-progress-bars --no-prompt --prompt-type socket-bundle --prompt-port 49437 --config-file /var/folders/9t/5wy55nd50sjc91s_lnny1pn178qlrm/T/build-1458825743449.json --no-banner --project-dir /Users/michael.kellogg/Documents/Appcelerator_Studio_Workspace/K2M_App
Expected Result
for project to execute
Forgot to mention I took these actions to attempt to fix the problem: 1. deleted build folders and re-built 2. cleaned all projects 3. restarted adb service 4. restarted appcelerator 5. restarted my machine 6. attempted to run on both iOS simulator and Android emulator Is nodejs messed up or something?
Hello, Please run the following command in the terminal. sudo rm -rf ~/.appcelerator sudo rm -rf ~/.titanium sudo npm uninstall -g titanium sudo npm uninstall -g appcelerator sudo npm install -g appcelerator appc use latest appc setup Start studio and try creating a new project try building it in Android or iOS. Reply with your findings, Thanks.
sharif, I have included "commandLine_results.txt" which is the log when I entered the commands you told me to and I have included "consolelog_after_reinstall.txt" which is the console log produced when I attempted to execute a new project after reinstall, which as you can see is the same as before. NOTES: - upon reinstall all my previous projects were still there since I used the same folder for projects after reinstalling, don't know if this is a problem -I'm not familiar with macOSX that well yet so I'm not sure if the uninstall needs to get rid of everything to be successful, maybe you can tell by the commandLine_results log. Thank you for your support!
I have resolved this issue. For future reference for you guys I will tell you what fixed it for me. I had been using gittio in order to download and connect modules up to my projects. I'm not sure which one had broken appcelerator for me, but once I removed these modules from my Library -> Application Support -> Titanium -> Modules folder appcelerator was able to execute projects again normally. If you see issues like this in the future maybe check if the user has recently installed modules. Thanks for your support guys.
Thanks for letting us know. Closing the ticket. Thanks.