Unable to launch WebDriverAgent

I am running only simulator on Jenkins with
Xcode 8.3.3
Appium 1.7.1

I got the error Unable to launch WebDriverAgent
[debug] [XCUITest] The app has been installed successfully.
[debug] [BaseDriver] Event ‘appInstalled’ logged at 1506633726485 (14:22:06 GMT-0700 (PDT))
[XCUITest] Using WDA path: ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
[XCUITest] Using WDA agent: ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj’
[debug] [XCUITest] Capability ‘useNewWDA’ set to false, so trying to reuse currently running WDA instance at ‘http://localhost:8100/
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[debug] [XCUITest] WDA is not listening at ‘http://localhost:8100/’. Rebuilding…
[debug] [BaseDriver] Event ‘wdaStartAttempted’ logged at 1506633726525 (14:22:06 GMT-0700 (PDT))
[XCUITest] Launching WebDriverAgent on the device
[XCUITest] Error: Carthage not found. Install using brew install carthage
at Object.wrappedLogger.errorAndThrow (…/…/lib/logging.js:63:13)
at checkForDependencies$ (…/…/…/lib/wda/utils.js:59:9)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at
Error: Carthage not found. Install using brew install carthage
at Object.wrappedLogger.errorAndThrow (…/…/lib/logging.js:63:13)
at checkForDependencies$ (…/…/…/lib/wda/utils.js:59:9)
at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21)
at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at

I ran Appium Doctor and seem everything are ok
auto-mac-01:~ autobot$ appium-doctor --ios
info AppiumDoctor Appium Doctor v.1.4.3
info AppiumDoctor ### Diagnostic starting ###
info AppiumDoctor :heavy_check_mark: The Node.js binary was found at: /usr/local/bin/node
info AppiumDoctor :heavy_check_mark: Node version is 8.5.0
info AppiumDoctor :heavy_check_mark: Xcode is installed at: /Applications/Xcode.app/Contents/Developer
info AppiumDoctor :heavy_check_mark: Xcode Command Line Tools are installed.
info AppiumDoctor :heavy_check_mark: DevToolsSecurity is enabled.
info AppiumDoctor :heavy_check_mark: The Authorization DB is set up properly.
info AppiumDoctor :heavy_check_mark: Carthage was found at: /usr/local/bin/carthage
info AppiumDoctor :heavy_check_mark: HOME is set to: /Users/autobot
info AppiumDoctor ### Diagnostic completed, no fix needed. ###
info AppiumDoctor
info AppiumDoctor Everything looks good, bye!
info AppiumDoctor

If I ran locally then everything work fine.
Please help me how to fix this? I saw couple post about this but nothing help. Much appreciated.

@wreed I am facing a similar issue. Can you help me? Here is one post where it worked for one guy. I don’t know how to alter the path as mentioned in the post. Can you help me?

open /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent on the terminal and write brew install carthage.