Project: appceleratorstudio
Issue TISTUD-7799: Error connecting to profiler and debugger: Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"
iOS app Debugging/profiling is getting failed with Mac OS El Captain(I am not sure whether it's an OS issue or not, but debugging used to work properly with an earlier version). Below is the error which is thrown. {code} [ERROR] : Error connecting to profiler: Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory " {code} *Steps:* 1. Create an alloy/classic app 2. Run with "Profile or Debug" for iOS Simulator *Actual:* App is unable to run either in debugger or profiler mode. And, app is not getting launched in simulator. Please find the console log: {code} Appcelerator Command-Line Interface, version 5.0.3 Copyright (c) 2014-2015, Appcelerator, Inc. All Rights Reserved. TRACE | __command__ search paths: [ "/Users/kondalkolipaka/.appcelerator/install/5.0.3/package", "/Users/kondalkolipaka/.appcelerator/install/5.0.3/package/node_modules", "/Users/kondalkolipaka/development/eclipse/Eclipse.app/Contents/MacOS/node_modules", "/Users/kondalkolipaka/development/eclipse/Eclipse.app/Contents/node_modules", "/Users/kondalkolipaka/development/eclipse/Eclipse.app/node_modules", "/Users/kondalkolipaka/development/eclipse/node_modules", "/Users/kondalkolipaka/development/node_modules", "/Users/kondalkolipaka/node_modules", "/Users/node_modules", "/node_modules", "/Users/kondalkolipaka/.appcelerator/.npm/lib/node_modules" ] DEBUG | [PLUGIN-LOAD] 0ms /Users/kondalkolipaka/.appcelerator/install/5.0.3/package/appc.js DEBUG | [PLUGIN-LOAD] 573ms /Users/kondalkolipaka/.appcelerator/install/5.0.3/package/node_modules/appc-cli-titanium/appc.js DEBUG | [PLUGIN-LOAD] 1ms /Users/kondalkolipaka/.appcelerator/install/5.0.3/package/node_modules/arrow/appc.js log level set to "trace" executing command "run" Preproduction Environment Active set environment to {"registry":"https://software-preprod.cloud.appctest.com","security":"https://security-preprod.cloud.appctest.com","baseurl":"https://360-preprod.cloud.appctest.com"} checking credentials for existing session Attempting to load session info from config file check if session is invalidated session expiry 1445925862642 false Arrow Cloud config file: /Users/kondalkolipaka/.acs found Arrow Cloud login { mid: 'af31ce68ea17b4a8fff2b7dcdb8fccd67d6bddfe', publishPort: 443, publishHost: 'https://admin.cloudapp-enterprise-preprod.appctest.com', username: 'kkolipaka@appcelerator.com', cookie: [ 'connect.sid=s%3A9wNrp1uBdPmXuQaD5bG5qset.iEIHKwr8JT0GWKQzOQYCvsk9FSQ7rzlioEQXP%2Fj5kWw; Path=/; Expires=Wed, 21 Oct 2015 06:04:46 GMT; HttpOnly' ], defaultEP: { publishHost: 'https://admin.cloudapp-enterprise-preprod.appctest.com', publishPort: 443 } } , checking nodeACSEndpoint= https://admin.cloudapp-enterprise-preprod.appctest.com Arrow Cloud cookie expiry [ 1445407486000 ] session already loaded in opts.session getCredentials() session: { "ipaddress": "192.168.0.112", "username": "kkolipaka@appcelerator.com", "password": "", "session": "", "nonce": "", "environment": { "name": "production", "isProduction": true, "acsBaseUrl": "https://preprod-api.cloud.appctest.com", "acsAuthBaseUrl": "https://dolphin-secure-identity.cloud.appcelerator.com", "nodeACSEndpoint": "https://admin.cloudapp-enterprise-preprod.appctest.com" }, "token": "", "fingerprint": "af31ce68ea17b4a8fff2b7dcdb8fccd67d6bddfe", "fingerprint_description": "Mac OSX Serial Number: C02GH2D3DRJC", "org_id": 100000780, "expiry": 1445925862642 } loading plugins for command "run" run search paths: [ "/Users/kondalkolipaka/.appcelerator/install/5.0.3/package", "/Users/kondalkolipaka/.appcelerator/install/5.0.3/package/node_modules", "/Users/kondalkolipaka/development/eclipse/Eclipse.app/Contents/MacOS/node_modules", "/Users/kondalkolipaka/development/eclipse/Eclipse.app/Contents/node_modules", "/Users/kondalkolipaka/development/eclipse/Eclipse.app/node_modules", "/Users/kondalkolipaka/development/eclipse/node_modules", "/Users/kondalkolipaka/development/node_modules", "/Users/kondalkolipaka/node_modules", "/Users/node_modules", "/node_modules", "/Users/kondalkolipaka/.appcelerator/.npm/lib/node_modules" ] [PLUGIN-LOAD] 0ms /Users/kondalkolipaka/.appcelerator/install/5.0.3/package/appc.js [PLUGIN-LOAD] 414ms /Users/kondalkolipaka/.appcelerator/install/5.0.3/package/node_modules/appc-cli-titanium/appc.js run plugin: /Users/kondalkolipaka/.appcelerator/install/5.0.3/package/node_modules/appc-cli-titanium [PLUGIN-LOAD] 1ms /Users/kondalkolipaka/.appcelerator/install/5.0.3/package/node_modules/arrow/appc.js run plugin: /Users/kondalkolipaka/.appcelerator/install/5.0.3/package/node_modules/arrow plugin "arrow" failed its "when" function check, skipping... loading plugin "titanium" for command "run" CLI options via function loading plugin "titanium" for command "run" CLI options via array Duplicate option "colors" for command "run", removing... executing command "run" with the following plugins: ["titanium"] TRACE | Attempting to load session info from config file TRACE | check if session is invalidated TRACE | session expiry 1445925862642 false TRACE | session already loaded in opts.session DEBUG | Titanium Downloads Last Checked: 1445313325968 TRACE | "/usr/local/bin/node" "/Users/kondalkolipaka/.appcelerator/install/5.0.3/package/node_modules/appc-cli-titanium/node_modules/titanium/bin/titanium" config -o json-object TRACE | "/usr/local/bin/node" "/Users/kondalkolipaka/.appcelerator/install/5.0.3/package/node_modules/appc-cli-titanium/node_modules/titanium/bin/titanium" sdk -o json TRACE | checking for titanium, result: { activeSDK: '5.2.0.v20151019184553', defaultInstallLocation: '/Users/kondalkolipaka/Library/Application Support/Titanium', installLocations: [ '/Users/kondalkolipaka/Library/Application Support/Titanium', '/Library/Application Support/Titanium' ], installed: { '5.2.0.v20151019184553': '/Users/kondalkolipaka/Library/Application Support/Titanium/mobilesdk/osx/5.2.0.v20151019184553', '5.0.2.GA': '/Users/kondalkolipaka/Library/Application Support/Titanium/mobilesdk/osx/5.0.2.GA' }, sdks: { '5.2.0.v20151019184553': { name: '5.2.0.v20151019184553', manifest: [Object], path: '/Users/kondalkolipaka/Library/Application Support/Titanium/mobilesdk/osx/5.2.0.v20151019184553' }, '5.0.2.GA': { name: '5.0.2.GA', manifest: [Object], path: '/Users/kondalkolipaka/Library/Application Support/Titanium/mobilesdk/osx/5.0.2.GA' } } } TRACE | /usr/local/bin/node [ '/Users/kondalkolipaka/.appcelerator/install/5.0.3/package/node_modules/appc-cli-titanium/node_modules/titanium/bin/titanium', 'build', '--platform', 'ios', '--log-level', 'trace', '--sdk', '5.2.0.v20151019184553', '--project-dir', '/Users/kondalkolipaka/development/workspaces/runtime-Titanium-360/app5', '--target', 'simulator', '--ios-version', '9.0', '--device-family', 'universal', '--deploy-type', 'development', '--sim-type', 'iphone', '--sim-version', '9.0', '--device-id', '2B5681C9-DB62-4917-AE3E-37B1D79AB4AA', '--profiler-host', '192.168.0.112:58214', '--skip-js-minify', '--no-colors', '--no-progress-bars', '--no-prompt', '--prompt-type', 'socket-bundle', '--prompt-port', '63446', '--username', 'kkolipaka@appcelerator.com', '--password', '[HIDDEN]', '--plugin-paths', '/Users/kondalkolipaka/.appcelerator/install/5.0.3/package/node_modules', '--config-file', '/var/folders/9n/xpk1tm596cbctmwyfhcqysfw0000gn/T/build-1445328688793.json', '--no-banner' ] { env: { SHELL: '/bin/bash', TMPDIR: '/var/folders/9n/xpk1tm596cbctmwyfhcqysfw0000gn/T/', SHLVL: '1', JAVA_HOME: '/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home', STUDIO_PRODUCT_ID: 'com.appcelerator.titanium.rcp.product', JAVA_MAIN_CLASS_35192: 'org.eclipse.equinox.launcher.Main', __CF_USER_TEXT_ENCODING: '0x1F5:0x0:0x0', STUDIO_VERSION: '4.4.0.qualifier', PATH: '/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin', ANALYTICS_SOURCE: 'studio', XPC_FLAGS: '0x0', APTANA_VERSION: '4.4.0.qualifier', COMMAND_MODE: 'unix2003', USER: 'kondalkolipaka', PWD: '/Users/kondalkolipaka/development/eclipse/Eclipse.app/Contents/MacOS', APP_ICON_768: '../Resources/Eclipse.icns', HOME: '/Users/kondalkolipaka', STUDIO_NAME: 'Appcelerator Studio', XPC_SERVICE_NAME: 'com.apple.xpc.launchd.oneshot.0x1000000f.eclipse', LOGNAME: 'kondalkolipaka', JAVA_STARTED_ON_FIRST_THREAD_768: '1', Apple_PubSub_Socket_Render: '/private/tmp/com.apple.launchd.zDDbfEmwv2/Render', SSH_AUTH_SOCK: '/private/tmp/com.apple.launchd.OsUway5g8m/Listeners', LANG: 'en_US.UTF-8', JAVA_STARTED_ON_FIRST_THREAD_35192: '1', APPC_NPM_VERSION: '4.2.0', npm_config_cache: '/Users/kondalkolipaka/.appcelerator/.npm', npm_config_prefix: '/Users/kondalkolipaka/.appcelerator/.npm', APPC_INSTALL_DIR: '/Users/kondalkolipaka/.appcelerator/install', APPC_INSTALL_BIN_DIR: '/Users/kondalkolipaka/.appcelerator/install/5.0.3/package/bin/appc', APPC_CONFIG_PROXY: '', NODE_PATH: '/Users/kondalkolipaka/.appcelerator/install/5.0.3/package/node_modules:/Users/kondalkolipaka/.appcelerator/cache/node_modules:', APPC_SUPPRESS_PROGRESS: 'true', APPC_REGISTRY_SERVER: 'https://software-preprod.cloud.appctest.com', APPC_SECURITY_SERVER: 'https://security-preprod.cloud.appctest.com', APPC_DASHBOARD_URL: 'https://360-preprod.cloud.appctest.com', APPC_ENV: 'preproduction', APPC_SESSION_TOKEN: 'd6b613747fe4a5ffec203678f4ccf227ae6b7422%20dbJb%2BQGydFVLxzb6jmVRC1yA9r%2FAudNgcYBNW1MceSADHjkkm%2B9zLMzwG7peXGNE%2Fxy5r5Q4Qe2emKKjkobXgAJ13OOojkhmt70Fgfgi2Y4ztv3%2BT%2B2AA3Ej6hpIfEw9%2Bl8EVQMl%2BMkDT3Mwe6fscAfr2qfVMdp7kS%2FEYoNxonmCfJi9694btJNNVt8dUB5R4j3AiaQI%2BJF7BEoo4gZDLRObHw91rzmut5cXwETfE1wRTKqa2OipLWeV%2FGHXrT4z%2FhYMPnqnsa%2FS9x2ddqCzv8WnpWDhiin8VroBVPTYMPg9H1%2FT5WJ%2FjjWGE9YVSELOs28DJ6qg3KO8wG3lAPmzCPtRUt4lNVxWp%2Bv%2BgwXHVFozLlZfHlWhTG7%2BVE%2FvruckbS3%2FgdkmJv%2FpMybddy%2Fteg18I2UzgYhpo4gg1I3ehe9HXVh1UeE4ieofCzo7LsA6HsACYzPm9jwkWyeS0N4i9PEGocWvZU60OuMeIVhHAP2hKe%2FBtT0oqFl%2FIpclutQSwFcHdjrgjLPWYVQ1TB3n%2Fy%2FBImOdSuaIOdCbnKo6RKg7UX7ES2UZWm6mWfbiZrAWTUlHfIB7VRnVtOrQhGgoE1X9JgZEwSvGI0KKt5WTYK7Ps8lZj3P6MdO8GGZ6jjyAzadaTn0Ifn%2BywJeJnMogZs0soU%2BUN88lBnxdtl%2Flfu1za1%2FlLVmcAJitg2iOh2hA6r%2BeR1kPMtbH3agU4XijeWi8mKdn%2FaFEVwszUQjW903A9F0LMEgQOZWHRsM5UIIj7HPQNMxRLVs%2BJOG%2BOoX2HzodWpHR6pC8vbCMSzFn1Ow%3D', APPC_SESSION_SID: 's%3AjYgsQ8hdh5yXnTX8nxy6J8yyv8HRcnMA.jhV1xEQLr3PmHW37yR3hdLwlKgj2NYgrxqQoj9CZzfY', APPC_SESSION_USERNAME: 'kkolipaka@appcelerator.com', APPC_SESSION_ORGID: '100000780', APPC_SESSION_ENV: '{"name":"production","isProduction":true,"acsBaseUrl":"https://preprod-api.cloud.appctest.com","acsAuthBaseUrl":"https://dolphin-secure-identity.cloud.appcelerator.com","nodeACSEndpoint":"https://admin.cloudapp-enterprise-preprod.appctest.com"}', APPC_SESSION_ENTITLEMENTS: '{"id":"54d8e49fce78815d81104cb3","name":"Team","partners":["acs","analytics"],"supportLink":"http://support2.appcelerator.com/","users":{"min":1,"max":-1},"testingDevices":{"min":0,"max":0},"allowProduction":true,"arrowPublish":true,"nativeSDK":false,"insights":true,"apiRateMonthPerSeat":10000000,"apiRateMinute":200,"pushRateMinute":200,"storageGBRateMonth":100,"eventRateMonthPerSeat":2000000,"daysDataRetained":365,"maxOrganizations":1,"dateRangeLimit":365,"dateRangeCustom":true,"exportMetrics":true,"exportAcs":true,"paid":true,"containerPoints":0,"containerPointsPerSeat":9,"_version":1}', ALLOY_PATH: '/Users/kondalkolipaka/.appcelerator/install/5.0.3/package/node_modules/appc-cli-titanium/node_modules/alloy/bin/alloy' }, stdio: [ Socket { _connecting: false, _hadError: false, _handle: [Object], _parent: null, _host: null, _readableState: [Object], readable: true, domain: null, _events: [Object], _eventsCount: 4, _maxListeners: undefined, _writableState: [Object], writable: false, allowHalfOpen: false, destroyed: false, bytesRead: 0, _bytesDispatched: 0, _sockname: null, _writev: null, _pendingData: null, _pendingEncoding: '', fd: 0 }, Socket { _connecting: false, _hadError: false, _handle: [Object], _parent: null, _host: null, _readableState: [Object], readable: false, domain: null, _events: [Object], _eventsCount: 3, _maxListeners: undefined, _writableState: [Object], writable: true, allowHalfOpen: false, destroyed: false, bytesRead: 0, _bytesDispatched: 4859, _sockname: null, _writev: null, _pendingData: null, _pendingEncoding: '', _type: 'pipe', fd: 1, _isStdio: true, destroySoon: [Function], destroy: [Function] }, 'pipe' ] } 10/20/2015, 4:11:33 PM Operating System Name = Mac OS X Version = 10.11 Architecture = 64bit # CPUs = 8 Memory = 17179869184 Node.js Node.js Version = 4.1.0 npm Version = 2.14.3 Titanium CLI CLI Version = 5.0.5 Titanium SDK SDK Version = 5.2.0.v20151019184553 SDK Path = /Users/kondalkolipaka/Library/Application Support/Titanium/mobilesdk/osx/5.2.0.v20151019184553 Target Platform = iphone Command /usr/local/bin/node /Users/kondalkolipaka/.appcelerator/install/5.0.3/package/node_modules/appc-cli-titanium/node_modules/titanium/bin/titanium build --platform ios --log-level trace --sdk 5.2.0.v20151019184553 --project-dir /Users/kondalkolipaka/development/workspaces/runtime-Titanium-360/app5 --target simulator --ios-version 9.0 --device-family universal --deploy-type development --sim-type iphone --sim-version 9.0 --device-id 2B5681C9-DB62-4917-AE3E-37B1D79AB4AA --profiler-host 192.168.0.112:58214 --skip-js-minify --no-colors --no-progress-bars --no-prompt --prompt-type socket-bundle --prompt-port 63446 --username kkolipaka@appcelerator.com --password kondal@19519 --plugin-paths /Users/kondalkolipaka/.appcelerator/install/5.0.3/package/node_modules --config-file /var/folders/9n/xpk1tm596cbctmwyfhcqysfw0000gn/T/build-1445328688793.json --no-banner [INFO] : Found Titanium plugin id=ti.alloy version=1.0 [INFO] : Deploy type: development [INFO] : Building for target: simulator [INFO] : Building using iOS SDK: 9.0 [INFO] : Building for iOS Simulator: iPhone 6 [INFO] : Building for device family: universal [INFO] : Minimum iOS version: 7.1 [INFO] : Debugging disabled [INFO] : Profiler enabled via profiler host: 192.168.0.112:58214 [INFO] : Set to copy files instead of symlinking [INFO] : Forcing clean build: /Users/kondalkolipaka/development/workspaces/runtime-Titanium-360/app5/build/iphone/build-manifest.json does not exist [INFO] : Initializing the build directory [INFO] : Found Alloy app in /Users/kondalkolipaka/development/workspaces/runtime-Titanium-360/app5/app [INFO] : Executing Alloy compile: /usr/local/bin/node /Users/kondalkolipaka/.appcelerator/install/5.0.3/package/node_modules/appc-cli-titanium/node_modules/alloy/bin/alloy compile /Users/kondalkolipaka/development/workspaces/runtime-Titanium-360/app5/app --config platform=ios,version=0,simtype=none,devicefamily=universal,deploytype=development,target=simulator --no-colors [INFO] : [config.json] config.json unchanged, using cached config.json... [INFO] : ----- MVC GENERATION ----- [INFO] : [global style] loading from cache... [INFO] : [index.xml] view processing... [INFO] : style: "index.tss" [INFO] : view: "index.xml" [INFO] : controller: "index.js" [INFO] : created: "Resources/iphone/alloy/controllers/index.js" [INFO] : created: "Resources/iphone/alloy/styles/index.js" [INFO] : [INFO] : [INFO] : [app.js] using cached app.js... [INFO] : [INFO] : ----- OPTIMIZING ----- [INFO] : - iphone/alloy.js [INFO] : - iphone/alloy/sync/localStorage.js [INFO] : - iphone/alloy/sync/properties.js [INFO] : - iphone/alloy/sync/sql.js [INFO] : [INFO] : Alloy compiled in 1.26289s [INFO] : Alloy compiler completed successfully [INFO] : Creating Xcode project [INFO] : Creating Entitlements.plist [INFO] : Creating Info.plist [INFO] : Disabling ATS [INFO] : Creating main.m [INFO] : Creating Xcode config files [INFO] : Copying Titanium libraries [INFO] : Copying Titanium iOS files [INFO] : Cleaning Xcode derived data [INFO] : Creating debugger and profiler plists [INFO] : Analyzing Resources directory [INFO] : Analyzing platform files [INFO] : Analyzing module files [INFO] : Analyzing localized launch images [INFO] : Analyzing CommonJS modules [INFO] : Creating asset catalog [INFO] : Creating app icon set [WARN] : Skipping Resources/iphone/appicon-60@2x.png because app icons must not have an alpha channel [WARN] : Skipping Resources/iphone/appicon-60@3x.png because app icons must not have an alpha channel [WARN] : Skipping Resources/iphone/appicon-76.png because app icons must not have an alpha channel [WARN] : Skipping Resources/iphone/appicon-76@2x.png because app icons must not have an alpha channel [WARN] : Skipping Resources/iphone/appicon-Small-40.png because app icons must not have an alpha channel [WARN] : Skipping Resources/iphone/appicon-Small-40@2x.png because app icons must not have an alpha channel [WARN] : Skipping Resources/iphone/appicon-Small.png because app icons must not have an alpha channel [WARN] : Skipping Resources/iphone/appicon-Small@2x.png because app icons must not have an alpha channel [INFO] : Creating launch image set [INFO] : Creating assets image set [INFO] : Processing JavaScript files [INFO] : Writing app properties [INFO] : Writing i18n files [INFO] : Processing Titanium symbols [INFO] : Removing files [INFO] : Invoking xcodebuild [INFO] : Finished building the application in 1m 15s 276ms [INFO] : Launching iOS Simulator [INFO] : Application started [INFO] : app5/1.0 (5.2.0.419c5c2) [ERROR] : Error connecting to profiler: Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory" {code}
Story points: 5