{"action":"created","issue":{"url":"https://api.github.com/repos/appium/appium/issues/8008","repository_url":"https://api.github.com/repos/appium/appium","labels_url":"https://api.github.com/repos/appium/appium/issues/8008/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/8008/comments","events_url":"https://api.github.com/repos/appium/appium/issues/8008/events","html_url":"https://github.com/appium/appium/issues/8008","id":212846716,"number":8008,"title":"Unable to launch WebDriverAgent because of xcodebuild failure","user":{"login":"bhamilton80","id":16944813,"avatar_url":"https://avatars1.githubusercontent.com/u/16944813?v=3","gravatar_id":"","url":"https://api.github.com/users/bhamilton80","html_url":"https://github.com/bhamilton80","followers_url":"https://api.github.com/users/bhamilton80/followers","following_url":"https://api.github.com/users/bhamilton80/following{/other_user}","gists_url":"https://api.github.com/users/bhamilton80/gists{/gist_id}","starred_url":"https://api.github.com/users/bhamilton80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhamilton80/subscriptions","organizations_url":"https://api.github.com/users/bhamilton80/orgs","repos_url":"https://api.github.com/users/bhamilton80/repos","events_url":"https://api.github.com/users/bhamilton80/events{/privacy}","received_events_url":"https://api.github.com/users/bhamilton80/received_events","type":"User","site_admin":false},"labels":[{"id":143265062,"url":"https://api.github.com/repos/appium/appium/labels/NeedsTriage","name":"NeedsTriage","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2017-03-08T20:26:19Z","updated_at":"2017-03-08T21:10:25Z","closed_at":"2017-03-08T21:10:25Z","body":"## [XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: Command '/bin/bash Scripts/bootstrap.sh -d' exited with code 1\r\n\r\nAppium inspector won't launch. The following error is displayed in terminal: \r\n[XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: Command '/bin/bash Scripts/bootstrap.sh -d' exited with code 1\r\n\r\n## Environment\r\n\r\n* Appium version (or git revision) that exhibits the issue: v1.6.4-beta\r\n* Desktop OS/version used to run Appium: Mac OSX\r\n* Mobile platform/version under test: iPhone\r\n* Real device or emulator/simulator: simulator\r\n\r\n## Appium logs\r\n````\r\n[Appium] Welcome to Appium v1.6.4-beta\r\n[Appium] Appium REST http interface listener started on 0.0.0.0:4723\r\n[HTTP] --> GET /wd/hub/status {}\r\n[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []\r\n[debug] [MJSONWP] Responding to client with driver.getStatus() result: {\"build\":{\"version\":\"1.6.4-beta\",\"revision\":null}}\r\n[HTTP] <-- GET /wd/hub/status 200 19 ms - 88 \r\n[HTTP] --> GET /wd/hub/sessions {}\r\n[debug] [MJSONWP] Calling AppiumDriver.getSessions() with args: []\r\n[debug] [MJSONWP] Responding to client with driver.getSessions() result: []\r\n[HTTP] <-- GET /wd/hub/sessions 200 2 ms - 40 \r\n[HTTP] --> POST /wd/hub/session {\"desiredCapabilities\":{\"platformName\":\"iOS\",\"platformVersion\":\"10.2\",\"newCommandTimeout\":\"7200\",\"app\":\"/Users/bhamilton/appium/UICatalog.app.zip\",\"automationName\":\"Appium\",\"deviceName\":\"iPhone 7\"}}\r\n[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{\"platformName\":\"iOS\",\"platformVersion\":\"10.2\",\"newCommandTimeout\":\"7200\",\"app\":\"/Users/bhamilton/appium/UICatalog.app.zip\",\"automationName\":\"Appium\",\"deviceName\":\"iPhone 7\"},null,null,null,null]\r\n[Appium] Requested iOS support with version >= 10, using XCUITest driver instead of UIAutomation-based driver, since the latter is unsupported on iOS 10 and up.\r\n[Appium] Creating new XCUITestDriver (v2.9.0) session\r\n[Appium] Capabilities:\r\n[Appium]   platformName: 'iOS'\r\n[Appium]   platformVersion: '10.2'\r\n[Appium]   newCommandTimeout: '7200'\r\n[Appium]   app: '/Users/bhamilton/appium/UICatalog.app.zip'\r\n[Appium]   automationName: 'Appium'\r\n[Appium]   deviceName: 'iPhone 7'\r\n[debug] [XCUITest] XCUITestDriver version: 2.9.0\r\n[BaseDriver] Capability 'newCommandTimeout' changed from string ('7200') to integer (7200). This may cause unexpected behavior\r\n[BaseDriver] Session created with session id: d3334e50-7322-460a-9d07-296b6bdd6870\r\n[debug] [XCUITest] Xcode version set to '8.2.1'\r\n[debug] [XCUITest] iOS SDK Version set to '10.2'\r\n[iOSSim] Constructing iOS simulator for Xcode version 8.2.1 with udid '39ED8DB4-DEEC-4AD8-969C-C2A158DE73A3'\r\n[XCUITest] Determining device to run tests on: udid: '39ED8DB4-DEEC-4AD8-969C-C2A158DE73A3', real device: false\r\n[BaseDriver] Using local app '/Users/bhamilton/appium/UICatalog.app.zip'\r\n[debug] [BaseDriver] Copying local zip to tmp dir\r\n[debug] [BaseDriver] Unzipping /var/folders/z1/ztzd23ld19jgwcsztw45srpc0000gn/T/201728-60155-t8a74q.lg73545cdi/appium-app.zip\r\n[debug] [BaseDriver] Testing zip archive: /var/folders/z1/ztzd23ld19jgwcsztw45srpc0000gn/T/201728-60155-t8a74q.lg73545cdi/appium-app.zip\r\n[BaseDriver] Unzipped local app to '/var/folders/z1/ztzd23ld19jgwcsztw45srpc0000gn/T/201728-60155-t8a74q.lg73545cdi/UICatalog.app'\r\n[debug] [XCUITest] Checking whether app '/var/folders/z1/ztzd23ld19jgwcsztw45srpc0000gn/T/201728-60155-t8a74q.lg73545cdi/UICatalog.app' is actually present on file system\r\n[debug] [XCUITest] App is present\r\n[debug] [iOS] Getting bundle ID from app '/var/folders/z1/ztzd23ld19jgwcsztw45srpc0000gn/T/201728-60155-t8a74q.lg73545cdi/UICatalog.app': 'com.example.apple-samplecode.UICatalog'\r\n[XCUITest] Not scrubbing third party app in anticipation of uninstall\r\n[debug] [iOSLog] Starting iOS 10.2 simulator log capture\r\n[debug] [iOSLog] System log path: /Users/bhamilton/Library/Logs/CoreSimulator/39ED8DB4-DEEC-4AD8-969C-C2A158DE73A3/system.log\r\n[XCUITest] Setting up simulator\r\n[debug] [iOS] No reason to set locale\r\n[debug] [iOS] No iOS / app preferences to set\r\n[debug] [XCUITest] Reset requested. Removing app with id 'com.example.apple-samplecode.UICatalog' from the device\r\n[XCUITest] Simulator with udid '39ED8DB4-DEEC-4AD8-969C-C2A158DE73A3' already booted\r\n[debug] [XCUITest] Installing /var/folders/z1/ztzd23ld19jgwcsztw45srpc0000gn/T/201728-60155-t8a74q.lg73545cdi/UICatalog.app on Simulator with UUID '39ED8DB4-DEEC-4AD8-969C-C2A158DE73A3'...\r\n[debug] [XCUITest] The app has been installed successfully.\r\n[XCUITest] Using WDA path: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'\r\n[XCUITest] Using WDA agent: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'\r\n[XCUITest] Launching WebDriverAgent on the device\r\n[debug] [XCUITest] Carthage found: '/usr/local/bin/carthage'\r\n[debug] [XCUITest] Running WebDriverAgent bootstrap script to install dependencies\r\n[debug] [XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: Command '/bin/bash Scripts/bootstrap.sh -d' exited with code 1\r\n[debug] [XCUITest] Quitting and uninstalling WebDriverAgent, then retrying\r\n[XCUITest] Shutting down sub-processes\r\n[debug] [XCUITest] Removing WDA application from device\r\n[XCUITest] Using WDA path: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'\r\n[XCUITest] Using WDA agent: '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'\r\n[XCUITest] Launching WebDriverAgent on the device\r\n[debug] [XCUITest] Carthage found: '/usr/local/bin/carthage'\r\n[debug] [XCUITest] Running WebDriverAgent bootstrap script to install dependencies\r\n[debug] [XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: Command '/bin/bash Scripts/bootstrap.sh -d' exited with code 1\r\n[debug] [XCUITest] Quitting and uninstalling WebDriverAgent, then retrying\r\n[XCUITest] Shutting down sub-processes\r\n[debug] [XCUITest] Removing WDA application from device\r\n[XCUITest] Error: Unable to launch WebDriverAgent because of xcodebuild failure: Command '/bin/bash Scripts/bootstrap.sh -d' exited with code 1\r\n    at XCUITestDriver.quitAndUninstall$ (../../lib/driver.js:331:15)\r\n    at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)\r\n    at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)\r\n    at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)\r\n    at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)\r\n    at process._tickCallback (internal/process/next_tick.js:103:7)\r\n Error: Unable to launch WebDriverAgent because of xcodebuild failure: Command '/bin/bash Scripts/bootstrap.sh -d' exited with code 1\r\n    at XCUITestDriver.quitAndUninstall$ (../../lib/driver.js:331:15)\r\n    at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)\r\n    at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)\r\n    at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)\r\n    at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)\r\n    at process._tickCallback (internal/process/next_tick.js:103:7)\r\n[debug] [iOSLog] Stopping iOS log capture\r\n[MJSONWP] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: Command '/bin/bash Scripts/bootstrap.sh -d' exited with code 1\r\n    at XCUITestDriver.quitAndUninstall$ (../../lib/driver.js:331:15)\r\n    at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)\r\n    at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)\r\n    at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)\r\n    at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)\r\n    at process._tickCallback (internal/process/next_tick.js:103:7)\r\n\r\n````\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/appium/appium/issues/comments/285170168","html_url":"https://github.com/appium/appium/issues/8008#issuecomment-285170168","issue_url":"https://api.github.com/repos/appium/appium/issues/8008","id":285170168,"user":{"login":"imurchie","id":2614354,"avatar_url":"https://avatars1.githubusercontent.com/u/2614354?v=3","gravatar_id":"","url":"https://api.github.com/users/imurchie","html_url":"https://github.com/imurchie","followers_url":"https://api.github.com/users/imurchie/followers","following_url":"https://api.github.com/users/imurchie/following{/other_user}","gists_url":"https://api.github.com/users/imurchie/gists{/gist_id}","starred_url":"https://api.github.com/users/imurchie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imurchie/subscriptions","organizations_url":"https://api.github.com/users/imurchie/orgs","repos_url":"https://api.github.com/users/imurchie/repos","events_url":"https://api.github.com/users/imurchie/events{/privacy}","received_events_url":"https://api.github.com/users/imurchie/received_events","type":"User","site_admin":false},"created_at":"2017-03-08T21:10:25Z","updated_at":"2017-03-08T21:10:25Z","body":"Excellent!"}}
{"actor":{"display_login":"imurchie"}}