{"action":"created","issue":{"url":"https://api.github.com/repos/appium/appium/issues/4637","repository_url":"https://api.github.com/repos/appium/appium","labels_url":"https://api.github.com/repos/appium/appium/issues/4637/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/4637/comments","events_url":"https://api.github.com/repos/appium/appium/issues/4637/events","html_url":"https://github.com/appium/appium/issues/4637","id":59609596,"number":4637,"title":"Appium in Yosemite - instruments WebKit Threading Violation - initial use of WebKit from a secondary thread.","user":{"login":"bhawani2008","id":6057224,"avatar_url":"https://avatars.githubusercontent.com/u/6057224?v=3","gravatar_id":"","url":"https://api.github.com/users/bhawani2008","html_url":"https://github.com/bhawani2008","followers_url":"https://api.github.com/users/bhawani2008/followers","following_url":"https://api.github.com/users/bhawani2008/following{/other_user}","gists_url":"https://api.github.com/users/bhawani2008/gists{/gist_id}","starred_url":"https://api.github.com/users/bhawani2008/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhawani2008/subscriptions","organizations_url":"https://api.github.com/users/bhawani2008/orgs","repos_url":"https://api.github.com/users/bhawani2008/repos","events_url":"https://api.github.com/users/bhawani2008/events{/privacy}","received_events_url":"https://api.github.com/users/bhawani2008/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/appium/appium/labels/iOS","name":"iOS","color":"444444"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2015-03-03T08:24:49Z","updated_at":"2016-08-15T08:05:30Z","closed_at":"2015-06-05T10:17:32Z","body":"Hi,\r\nI am working with Appium@1.3.4 and Protractor for iOS hybrid app automation in Yosemite. I am getting the error on executing the protractor tests with Appium server.\r\nKindly advise.\r\n\r\nMy Config file:\r\nexports.config = {\r\n  allScriptsTimeout: 50000 ,\r\n  getPageTimeout: 50000 ,\r\n  seleniumAddress: 'http://localhost:4723/wd/hub',\r\n  \r\n\tspecs: ['PageObjectSpec.js'],\r\n\r\n capabilities: {\r\n     browserName: 'iOS' ,\r\n    'appium-version':'1.3.4',\r\n     platformName:'iOS'   ,\r\n     platformVersion: 8.1 ,\r\n     deviceName:'iPhone6' ,\r\n     autoWebview:true , \r\n     app: /Users/qualcomm/Desktop/bhawani/AbbVieCareCH.app ,\r\n  },\r\n\r\n   baseUrl: 'http://10.0.2.2:' + (process.env.HTTP_PORT || '8000') ,\r\n   jasmineNodeOpts: {showColors: true, defaultTimeoutInterval: 50000} ,\r\n};   \r\n\r\n\r\n\r\nAPPIUM LOGS::\r\n\r\ninfo: Welcome to Appium v1.3.4 (REV c8c79a85fbd6870cd6fc3d66d038a115ebe22efe)\r\ninfo: Appium REST http interface listener started on 0.0.0.0:4723\r\ninfo: [debug] Non-default server args: {\"app\":\"/Users/Desktop/bhawani/AbbVieCareCH.app\",\"ipa\":\"/Users/Desktop/bhawani/abbvieCH-dev-01.01.21050131.01.ipa\",\"udid\":\"cbecb05c855c13d9b2e6b693999123268fc0b966\"}\r\ninfo: Console LogLevel: debug\r\ninfo: --> POST /wd/hub/session {\"desiredCapabilities\":{\"browserName\":\"iOS\",\"appium-version\":\"1.3.4\",\"platformName\":\"iOS\",\"platformVersion\":8.1,\"deviceName\":\"iPhone6\",\"autoWebview\":true,\"count\":1}}\r\ninfo: Client User-Agent string: undefined\r\ninfo: [debug] The following desired capabilities were provided, but not recognized by appium. They will be passed on to any other services running on this server. : appium-version, count\r\ninfo: [debug] Using local app from command line: /Users/Desktop/bhawani/AbbVieCareCH.app\r\ninfo: [debug] Creating new appium session f9bf457f-1cd1-4638-8db8-41dd69d82dee\r\ninfo: [debug] Removing any remaining instruments sockets\r\ninfo: [debug] Cleaned up instruments socket /tmp/instruments_sock\r\ninfo: [debug] Setting Xcode folder\r\ninfo: [debug] Setting Xcode version\r\ninfo: [debug] Setting iOS SDK Version\r\ninfo: [debug] Getting sdk version from xcrun with a timeout\r\ninfo: [debug] iOS SDK Version set to 8.1\r\ninfo: [debug] Not checking whether simulator is available since we're on a real device\r\ninfo: [debug] Detecting automation tracetemplate\r\ninfo: [debug] Not auto-detecting udid, running on sim\r\ninfo: [debug] Parsed app Info.plist (as binary)\r\ninfo: [debug] Parsed app Localizable.strings\r\ninfo: [debug] Getting bundle ID from app\r\ninfo: [debug] Parsed app Info.plist (as binary)\r\ninfo: [debug] Creating instruments\r\ninfo: On some xcode 6 platforms, instruments-without-delay does not work. If you experience this, you will need to re-run appium with the --native-instruments-lib flag\r\ninfo: [debug] Preparing uiauto bootstrap\r\ninfo: [debug] Dynamic bootstrap dir: /Users/Library/Application Support/appium/bootstrap\r\ninfo: [debug] Dynamic env: {\"nodePath\":\"/usr/local/bin/node\",\"commandProxyClientPath\":\"/usr/local/lib/node_modules/appium/node_modules/appium-uiauto/bin/command-proxy-client.js\",\"instrumentsSock\":\"/tmp/instruments_sock\",\"interKeyDelay\":null,\"justLoopInfinitely\":false,\"autoAcceptAlerts\":false,\"sendKeyStrategy\":\"grouped\"}\r\ninfo: [debug] Dynamic bootstrap code: // This file is automatically generated. D...ot manually modify!\r\ninfo: [debug] Dynamic bootstrap path: /Users//Library/Application Support/appium/bootstrap/bootstrap-d0f21a5b61bb08af.js\r\ninfo: [debug] Reusing dynamic bootstrap: /Users/Library/Application Support/appium/bootstrap/bootstrap-d0f21a5b61bb08af.js\r\ninfo: [debug] Getting device string from opts: {\"forceIphone\":false,\"forceIpad\":false,\"xcodeVersion\":\"6.1.1\",\"iOSSDKVersion\":\"8.1\",\"deviceName\":\"iPhone6\",\"platformVersion\":8.1}\r\ninfo: [debug] fixDevice is on\r\ninfo: [debug] Final device string is: 'iPhone6 (8.1 Simulator)'\r\ninfo: [debug] Not setting device type since we're on a real device\r\ninfo: [debug] Checking whether we need to set app preferences\r\ninfo: [debug] Not setting iOS and app preferences since we're on a real device\r\ninfo: [debug] Running ios sim reset flow\r\ninfo: [debug] Killing the simulator process\r\ninfo: [debug] Killall iOS Simulator\r\ninfo: [debug] Killing any other simulator daemons\r\ninfo: [debug] On a real device; cannot clean device state\r\ninfo: [debug] Not setting locale because we're using a real device\r\ninfo: [debug] No iOS / app preferences to set\r\ninfo: [debug] Starting iOS device log capture via deviceconsole\r\ninfo: [debug] Not pre-launching simulator\r\ninfo: [debug] Creating iDevice object with udid cbecb05c855c13d9b2e6b693999123268fc0b966\r\ninfo: [debug] Checking app install status using: /usr/local/lib/node_modules/appium/build/fruitstrap/fruitstrap isInstalled --id cbecb05c855c13d9b2e6b693999123268fc0b966 --bundle com.qcl.healthycircles.dev\r\ninfo: [debug] App is installed.\r\ninfo: [debug] fullReset not requested. No need to install.\r\ninfo: [debug] Starting command proxy.\r\ninfo: [debug] Instruments socket server started at /tmp/instruments_sock\r\ninfo: [debug] Starting instruments\r\ninfo: [debug] Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments\r\ninfo: Launching instruments\r\ninfo: [debug] Attempting to run app on real device with UDID cbecb05c855c13d9b2e6b693999123268fc0b966\r\ninfo: [debug] Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w cbecb05c855c13d9b2e6b693999123268fc0b966 com.qcl.healthycircles.dev -e UIASCRIPT \"/Users/Library/Application Support/appium/bootstrap/bootstrap-d0f21a5b61bb08af.js\" -e UIARESULTSPATH /tmp/appium-instruments\r\ninfo: [debug] And extra without-delay env: {}\r\ninfo: [debug] And launch timeouts (in ms): {\"global\":90000}\r\ninfo: [debug] [INST STDERR] 2015-03-02 18:32:26.224 instruments[12949:128680] WebKit Threading Violation - initial use of WebKit from a secondary thread.\r\ninfo: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: Permission to debug com.qcl.healthycircles.dev was denied. The app must be signed with a development identity (e.g. iOS Developer).\r\ninfo: [debug] [INSTSERVER] Instruments exited with code 253\r\ninfo: [debug] Killall instruments\r\ninfo: [debug] Instruments crashed on startup\r\ninfo: [debug] Attempting to retry launching instruments, this is retry #1\r\ninfo: [debug] Killall iOS Simulator\r\ninfo: Launching instruments\r\ninfo: [debug] Attempting to run app on real device with UDID cbecb05c855c13d9b2e6b693999123268fc0b966\r\ninfo: [debug] Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w cbecb05c855c13d9b2e6b693999123268fc0b966 com.qcl.healthycircles.dev -e UIASCRIPT \"/Users/Library/Application Support/appium/bootstrap/bootstrap-d0f21a5b61bb08af.js\" -e UIARESULTSPATH /tmp/appium-instruments\r\ninfo: [debug] And extra without-delay env: {}\r\ninfo: [debug] And launch timeouts (in ms): {\"global\":90000}\r\ninfo: [debug] [INST STDERR] 2015-03-02 18:32:33.470 instruments[12952:128775] Connection peer refused channel request for \"com.apple.instruments.server.services.launchdaemon\"; channel canceled <DTXChannel: 0x7fdbc06a32c0>\r\ninfo: [debug] [INST STDERR] 2015-03-02 18:32:33.472 instruments[12952:128776] Connection peer refused channel request for \"com.apple.instruments.server.services.device.xpccontrol\"; channel canceled <DTXChannel: 0x7fdbc1d8fc30>\r\ninfo: [debug] [INST STDERR] 2015-03-02 18:32:33.474 instruments[12952:128775] Connection peer refused channel request for \"com.apple.instruments.server.services.deviceinfo\"; channel canceled <DTXChannel: 0x7fdbc1a95420>\r\ninfo: [debug] [INST STDERR] 2015-03-02 18:32:33.475 instruments[12952:128776] Connection peer refused channel request for \"com.apple.instruments.server.services.processcontrol\"; channel canceled <DTXChannel: 0x7fdbc1d8e490>\r\ninfo: [debug] [INST STDERR] 2015-03-02 18:32:33.476 instruments[12952:128775] Connection peer refused channel request for \"com.apple.instruments.server.services.processcontrol.posixspawn\"; channel canceled <DTXChannel: 0x7fdbc1a94f10>\r\ninfo: [debug] [INST STDERR] 2015-03-02 18:32:33.477 instruments[12952:128776] Connection peer refused channel request for \"com.apple.instruments.server.services.mobilenotifications\"; channel canceled <DTXChannel: 0x7fdbc041b990>\r\ninfo: [debug] [INST STDERR] 2015-03-02 18:32:33.479 instruments[12952:128776] Connection peer refused channel request for \"com.apple.instruments.server.services.device.applictionListing\"; channel canceled <DTXChannel: 0x7fdbc0420330>\r\ninfo: [debug] [INST STDERR] 2015-03-02 18:32:33.506 instruments[12952:128781] Connection peer refused channel request for \"com.apple.instruments.server.services.wireless\"; channel canceled <DTXChannel: 0x7fdbc05034e0>\r\ninfo: [debug] [INST STDERR] 2015-03-02 18:32:33.523 instruments[12952:128775] WebKit Threading Violation - initial use of WebKit from a secondary thread.\r\ninfo: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: Permission to debug com.qcl.healthycircles.dev was denied. The app must be signed with a development identity (e.g. iOS Developer).\r\ninfo: [debug] [INSTSERVER] Instruments exited with code 253\r\ninfo: [debug] Killall instruments\r\ninfo: [debug] Instruments crashed on startup\r\ninfo: [debug] Attempting to retry launching instruments, this is retry #2\r\ninfo: [debug] Killall iOS Simulator\r\ninfo: Launching instruments\r\ninfo: [debug] Attempting to run app on real device with UDID cbecb05c855c13d9b2e6b693999123268fc0b966\r\ninfo: [debug] Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w cbecb05c855c13d9b2e6b693999123268fc0b966 com.qcl.healthycircles.dev -e UIASCRIPT \"/Users/Library/Application Support/appium/bootstrap/bootstrap-d0f21a5b61bb08af.js\" -e UIARESULTSPATH /tmp/appium-instruments\r\ninfo: [debug] And extra without-delay env: {}\r\ninfo: [debug] And launch timeouts (in ms): {\"global\":90000}\r\ninfo: [debug] [INST STDERR] 2015-03-02 18:32:39.919 instruments[12955:128821] WebKit Threading Violation - initial use of WebKit from a secondary thread.\r\ninfo: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: Permission to debug com.qcl.healthycircles.dev was denied. The app must be signed with a development identity (e.g. iOS Developer).\r\ninfo: [debug] [INSTSERVER] Instruments exited with code 253\r\ninfo: [debug] Killall instruments\r\ninfo: [debug] Instruments crashed on startup\r\ninfo: [debug] Attempting to retry launching instruments, this is retry #3\r\ninfo: [debug] Killall iOS Simulator\r\ninfo: Launching instruments\r\ninfo: [debug] Attempting to run app on real device with UDID cbecb05c855c13d9b2e6b693999123268fc0b966\r\ninfo: [debug] Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation.tracetemplate -D /tmp/appium-instruments/instrumentscli0.trace -w cbecb05c855c13d9b2e6b693999123268fc0b966 com.qcl.healthycircles.dev -e UIASCRIPT \"/Users/Library/Application Support/appium/bootstrap/bootstrap-d0f21a5b61bb08af.js\" -e UIARESULTSPATH /tmp/appium-instruments\r\ninfo: [debug] And extra without-delay env: {}\r\ninfo: [debug] And launch timeouts (in ms): {\"global\":90000}\r\ninfo: [debug] [INST STDERR] 2015-03-02 18:32:46.162 instruments[12958:128870] WebKit Threading Violation - initial use of WebKit from a secondary thread.\r\ninfo: [debug] [INST STDERR] Instruments Trace Error : Target failed to run: Permission to debug com.qcl.healthycircles.dev was denied. The app must be signed with a development identity (e.g. iOS Developer).\r\ninfo: [debug] [INSTSERVER] Instruments exited with code 253\r\ninfo: [debug] Killall instruments\r\ninfo: [debug] Instruments crashed on startup\r\ninfo: [debug] We exceeded the number of retries allowed for instruments to successfully start; failing launch\r\ninfo: [debug] Stopping iOS log capture\r\ninfo: [debug] Running ios sim reset flow\r\ninfo: [debug] Killing the simulator process\r\ninfo: [debug] Killall iOS Simulator\r\ninfo: [debug] Killing any other simulator daemons\r\ninfo: [debug] On a real device; cannot clean device state\r\ninfo: [debug] Cleaning up appium session\r\nerror: Failed to start an Appium session, err was: Error: Instruments crashed on startup\r\ninfo: [debug] Error: Instruments crashed on startup\r\n    at Instruments.onInstrumentsExit (/usr/local/lib/node_modules/appium/node_modules/appium-instruments/lib/instruments.js:387:31)\r\n    at null.<anonymous> (/usr/local/lib/node_modules/appium/node_modules/appium-instruments/lib/instruments.js:308:12)\r\n    at ChildProcess.emit (events.js:98:17)\r\n    at Process.ChildProcess._handle.onexit (child_process.js:810:12)\r\ninfo: [debug] Responding to client with error: {\"status\":33,\"value\":{\"message\":\"A new session could not be created. (Original error: Instruments crashed on startup)\",\"origValue\":\"Instruments crashed on startup\"},\"sessionId\":null}\r\ninfo: <-- POST /wd/hub/session 500 25403.185 ms - 182 \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/appium/appium/issues/comments/239749182","html_url":"https://github.com/appium/appium/issues/4637#issuecomment-239749182","issue_url":"https://api.github.com/repos/appium/appium/issues/4637","id":239749182,"user":{"login":"aroramayank2002","id":213698,"avatar_url":"https://avatars.githubusercontent.com/u/213698?v=3","gravatar_id":"","url":"https://api.github.com/users/aroramayank2002","html_url":"https://github.com/aroramayank2002","followers_url":"https://api.github.com/users/aroramayank2002/followers","following_url":"https://api.github.com/users/aroramayank2002/following{/other_user}","gists_url":"https://api.github.com/users/aroramayank2002/gists{/gist_id}","starred_url":"https://api.github.com/users/aroramayank2002/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aroramayank2002/subscriptions","organizations_url":"https://api.github.com/users/aroramayank2002/orgs","repos_url":"https://api.github.com/users/aroramayank2002/repos","events_url":"https://api.github.com/users/aroramayank2002/events{/privacy}","received_events_url":"https://api.github.com/users/aroramayank2002/received_events","type":"User","site_admin":false},"created_at":"2016-08-15T08:05:30Z","updated_at":"2016-08-15T08:05:30Z","body":"Resolved for me using following configurations, I am using WDIO. This seems to be the only thread on  internet where useful information is provided for this issue.\r\n\r\nDevice 1:\r\nnpm run wdio – conf/a4e8adc16dbb7e2e2a72f6aa85670882515da8ea.js\r\nios_webkit_debug_proxy -c a4e8adc16dbb7e2e2a72f6aa856702515da8ea:9223 -d > /Users/Shared/temp/log0\r\nappium -p 4724 -bp 4734 --session-override --webkit-debug-proxy-port 9223 -U a4e8adc16dbb7e2e2a72f6aa85670882515da8ea --app ‘safari’ --tmp /Users/Shared/temp/tmp0\r\n\r\nDevice 2:\r\nnpm run wdio – conf/47e8c20aba1aee417aac7310bec11ab87884a79d.js\r\nios_webkit_debug_proxy -c 47e8c20aba1aee417aac7310bec1187884a79d:9222 -d > /Users/Shared/temp/log1\r\nappium -p 4725 -bp 4735 --webkit-debug-proxy-port 9222 -U a4e8adc16dbb7e2e2a72f6aa85670882515da8ea --app 'safari' --session-override --tmp /Users/Shared/temp/tmp1"}}
{"actor":{"display_login":"aroramayank2002"}}