# Mac install WebDriverAgent dependencies Failed

**URL:** <https://forum.katalon.com/t/mac-install-webdriveragent-dependencies-failed/62880>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [February 25, 2022, 9:11am UTC](https://forum.katalon.com/t/mac-install-webdriveragent-dependencies-failed/62880 "2022-02-25T09:11:33Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![xin.xin](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/xin.xin/32/16104_2.png) [@xin.xin](https://forum.katalon.com/u/xin.xin)\
**Post date:** [February 25, 2022, 9:11am UTC](https://forum.katalon.com/t/mac-install-webdriveragent-dependencies-failed/62880/1 "2022-02-25T09:11:33Z")

</div>

## Hi, I run the Katalon Studio on Mac, have rebuilt successfully on Xcode, but when I tried the Katalon Studio\>Tools\>iOS\>install WebDriverAgent, I got the error as below

## Failed to run the installation step “Installing WebDriverAgent dependencies…” Command: “sh ./Script/bootstrap.sh -d”

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/e/6/e68f5356e703c126f22cf257660ddaffdc0b7da6.jpeg)

---------Related version-----------  
Xcode Version: 13.0  
Katalon Studio: 8.2.5  
Appium Version: 1.22.2  
iPhone OS Version: 15.1

Any suggestion will be very appreciated.

---

<div class="post-metadata">

**Author:** ![duyluong](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/duyluong/32/1116_2.png) [@duyluong](https://forum.katalon.com/u/duyluong)\
**Post date:** [February 28, 2022, 4:19am UTC](https://forum.katalon.com/t/mac-install-webdriveragent-dependencies-failed/62880/2 "2022-02-28T04:19:29Z")

</div>

> [@xin.xin](#):
>
> sh ./Script/bootstrap.sh -d

You don’t need to run this step for Appium 1.20 and later. Please go straight forward for next steps.  
[https://docs.katalon.com/katalon-studio/docs/installing-webdriveragent-for-ios-devices.html#configure-the-webdriveragent](https://docs.katalon.com/katalon-studio/docs/installing-webdriveragent-for-ios-devices.html#configure-the-webdriveragent)

---

<div class="post-metadata">

**Author:** ![xin.xin](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/xin.xin/32/16104_2.png) [@xin.xin](https://forum.katalon.com/u/xin.xin)\
**Post date:** [February 28, 2022, 5:15am UTC](https://forum.katalon.com/t/mac-install-webdriveragent-dependencies-failed/62880/3 "2022-02-28T05:15:34Z")

</div>

@duyluong  
Thanks for your quickly response.  
But when I try to connect the iPhone to Katalon Studio, I got this error, so I guess if it’s related WDA install.  
----------appium log---------  
e[35m[WebDriverAgent]e[39m Using WDA path: ‘/usr/local/lib/node\_modules/appium/node\_modules/appium-webdriveragent’  
e[35m[WebDriverAgent]e[39m Using WDA agent: ‘/usr/local/lib/node\_modules/appium/node\_modules/appium-webdriveragent/WebDriverAgent.xcodeproj’  
e[35m[XCUITest]e[39m Continuing without capturing device logs: Failed to receive any data within the timeout: 5000  
e[35m[XCUITest]e[39m Setting up real device  
e[35m[DevCon Factory]e[39m Releasing connections for {udidxxxxxx} device on any port number  
e[35m[DevCon Factory]e[39m No cached connections have been found  
e[35m[HTTP]e[39m e[37m\<-- POST /wd/hub/session e[39me[31m500e[39m e[90m10883 ms - 599e[39m

---

<div class="post-metadata">

**Author:** ![duyluong](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/duyluong/32/1116_2.png) [@duyluong](https://forum.katalon.com/u/duyluong)\
**Post date:** [March 1, 2022, 1:12pm UTC](https://forum.katalon.com/t/mac-install-webdriveragent-dependencies-failed/62880/4 "2022-03-01T13:12:23Z")

</div>

@xin.xin

What is the Appium, XCode version you are using?

There was a similar discussion in Appium forum but it’s not resolved: [https://discuss.appium.io/t/an-unknown-server-side-error-occurred-while-processing-the-command-original-error-failed-to-receive-any-data-within-the-timeout-5000/35773](https://discuss.appium.io/t/an-unknown-server-side-error-occurred-while-processing-the-command-original-error-failed-to-receive-any-data-within-the-timeout-5000/35773)

---

<div class="post-metadata">

**Author:** ![xin.xin](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/xin.xin/32/16104_2.png) [@xin.xin](https://forum.katalon.com/u/xin.xin)\
**Post date:** [March 1, 2022, 1:27pm UTC](https://forum.katalon.com/t/mac-install-webdriveragent-dependencies-failed/62880/5 "2022-03-01T13:27:46Z")

</div>

@duyluong  
Here is the related information, it’s very strange that I have already built successfully in Xcode, but when I try to run the Katalon Studio I got this WDA error

> [@xin.xin](#):
>
> Xcode Version: 13.0  
> Katalon Studio: 8.2.5  
> Appium Version: 1.22.2

---

<div class="post-metadata">

**Author:** ![duyluong](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/duyluong/32/1116_2.png) [@duyluong](https://forum.katalon.com/u/duyluong)\
**Post date:** [March 1, 2022, 3:31pm UTC](https://forum.katalon.com/t/mac-install-webdriveragent-dependencies-failed/62880/6 "2022-03-01T15:31:27Z")

</div>

@xin.xin

Do you face the issue with the simulator?

---

<div class="post-metadata">

**Author:** ![xin.xin](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/xin.xin/32/16104_2.png) [@xin.xin](https://forum.katalon.com/u/xin.xin)\
**Post date:** [March 2, 2022, 11:38am UTC](https://forum.katalon.com/t/mac-install-webdriveragent-dependencies-failed/62880/7 "2022-03-02T11:38:41Z")

</div>

@duyluong  
I can launch the Calendar App in Simulator by Katalon, so does it means it is the Real Device issue of Appium? Do you have some suggestions?

---

<div class="post-metadata">

**Author:** ![xin.xin](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/xin.xin/32/16104_2.png) [@xin.xin](https://forum.katalon.com/u/xin.xin)\
**Post date:** [March 9, 2022, 11:12am UTC](https://forum.katalon.com/t/mac-install-webdriveragent-dependencies-failed/62880/8 "2022-03-09T11:12:31Z")

</div>

Hi,  
I have updated my Xcode to up-to-date 13.2.1, and i can launch the App by Appium directly,  
but cannot launch it by Katalon, it seems the Katalon’s issue, could you give me some suggestions?

---

<div class="post-metadata">

**Author:** ![duyluong](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/duyluong/32/1116_2.png) [@duyluong](https://forum.katalon.com/u/duyluong)\
**Post date:** [March 10, 2022, 3:05am UTC](https://forum.katalon.com/t/mac-install-webdriveragent-dependencies-failed/62880/9 "2022-03-10T03:05:45Z")

</div>

@xin.xin

Do you mean Appium desktop?  
Please share the desired capabilities which you use to start the app with Appium Desktop.

---

<div class="post-metadata">

**Author:** ![xin.xin](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/xin.xin/32/16104_2.png) [@xin.xin](https://forum.katalon.com/u/xin.xin)\
**Post date:** [March 11, 2022, 6:35am UTC](https://forum.katalon.com/t/mac-install-webdriveragent-dependencies-failed/62880/10 "2022-03-11T06:35:35Z")

</div>

@duyluong  
Hi, here is my desired capabilities using by Appium Desktop  
{  
“platformName”: “iOS”,  
“appium:platformVersion”: “15.3.1”,  
“appium:deviceName”: “iPhone X”,  
“appium:automationName”: “XCUITest”,  
“appium:bundleId”: “com.apple.weather”,  
“appium:udid”: “xxxxx”  
}

---

<div class="post-metadata">

**Author:** ![xin.xin](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/xin.xin/32/16104_2.png) [@xin.xin](https://forum.katalon.com/u/xin.xin)\
**Post date:** [March 14, 2022, 8:29am UTC](https://forum.katalon.com/t/mac-install-webdriveragent-dependencies-failed/62880/11 "2022-03-14T08:29:08Z")

</div>

@duyluong  
Hi, do you have any updates? very appreciate if I can get some feedback, thanks.

---

<div class="post-metadata">

**Author:** ![duyluong](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/duyluong/32/1116_2.png) [@duyluong](https://forum.katalon.com/u/duyluong)\
**Post date:** [March 14, 2022, 8:37am UTC](https://forum.katalon.com/t/mac-install-webdriveragent-dependencies-failed/62880/12 "2022-03-14T08:37:17Z")

</div>

@xin.xin

We will investigate the issue soon. In meantime, you can spy/record and run the test by using Appium Server via Remote execution:

> **[Introduction to Mobile Recorder](https://docs.katalon.com/katalon-studio/docs/katalon_mobile_recorder_introduction.html#mobile-recorder)**
>
> Katalon Studio Record Mobile feature allows users to record and run the same tests on multiple devices. This is an introduction to Katalon Mobile Recorder.

  

> **[Remote Execution for Mobile Testing](https://docs.katalon.com/katalon-studio/docs/mobile-remote-execution.html#prerequisites)**
>
> This tutorial guides you through configuring Desired Capabilities for executing mobile tests remotely with the local Appium server (Appium Grid). Currently, Katalon Studio only supports testing an iOS application using...

---

<div class="post-metadata">

**Author:** ![xin.xin](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/xin.xin/32/16104_2.png) [@xin.xin](https://forum.katalon.com/u/xin.xin)\
**Post date:** [March 15, 2022, 2:08am UTC](https://forum.katalon.com/t/mac-install-webdriveragent-dependencies-failed/62880/13 "2022-03-15T02:08:35Z")

</div>

@duyluong  
Thanks for your suggestion, unfortunately, it doesn’t work for me by Remote Execution for iOS.  
I encountered this error as below, please refer to the attachment about my remote setting.

Now I cannot proceed with the iOS testing, if you have any updates please let me know, many many thanks.

## ---------error alert for katalon studio------------ java.util.concurrent.ExecutionException: org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65 xcodebuild error message: . Make sure you follow the tutorial at [https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md](https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md). Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device. Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’ System info: host: ‘X0825’, ip: ‘fe80:0:0:0:ee:a2a2:87d3:54d0%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86\_64’, os.version: ‘10.16’, java.version: ‘1.8.0\_275’ Driver info: driver.version: IOSDriver remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65 xcodebuild error message: . Make sure you follow the tutorial at [https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md](https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md). Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device. at getResponseForW3CError (/Applications/Appium Server GUI.app/Contents/Resources/app/node\_modules/appium/node\_modules/appium-base-driver/lib/protocol/errors.js:804:9) at asyncHandler (/Applications/Appium Server GUI.app/Contents/Resources/app/node\_modules/appium/node\_modules/appium-base-driver/lib/protocol/protocol.js:380:37) at runNextTicks (internal/process/task\_queues.js:58:5) at processImmediate (internal/timers.js:412:9) Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’ System info: host: ‘X0825’, ip: ‘fe80:0:0:0:ee:a2a2:87d3:54d0%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86\_64’, os.version: ‘10.16’, java.version: ‘1.8.0\_275’ Driver info: driver.version: IOSDriver at com.kms.katalon.composer.components.impl.dialogs.ProgressMonitorDialogWithThread.runAndWait(ProgressMonitorDialogWithThread.java:49) at com.kms.katalon.composer.mobile.objectspy.components.RemoteAppComposite$1.run(RemoteAppComposite.java:112) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122) Caused by: org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65 xcodebuild error message: . Make sure you follow the tutorial at [https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md](https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md). Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device. Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’ System info: host: ‘X0825’, ip: ‘fe80:0:0:0:ee:a2a2:87d3:54d0%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86\_64’, os.version: ‘10.16’, java.version: ‘1.8.0\_275’ Driver info: driver.version: IOSDriver remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65 xcodebuild error message: . Make sure you follow the tutorial at [https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md](https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md). Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device. at getResponseForW3CError (/Applications/Appium Server GUI.app/Contents/Resources/app/node\_modules/appium/node\_modules/appium-base-driver/lib/protocol/errors.js:804:9) at asyncHandler (/Applications/Appium Server GUI.app/Contents/Resources/app/node\_modules/appium/node\_modules/appium-base-driver/lib/protocol/protocol.js:380:37) at runNextTicks (internal/process/task\_queues.js:58:5) at processImmediate (internal/timers.js:412:9) Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’ System info: host: ‘X0825’, ip: ‘fe80:0:0:0:ee:a2a2:87d3:54d0%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86\_64’, os.version: ‘10.16’, java.version: ‘1.8.0\_275’ Driver info: driver.version: IOSDriver at io.appium.java\_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:208) at io.appium.java\_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:217) at io.appium.java\_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552) at io.appium.java\_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42) at io.appium.java\_client.AppiumDriver.execute(AppiumDriver.java:1) at io.appium.java\_client.ios.IOSDriver.execute(IOSDriver.java:1) at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213) at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:131) at io.appium.java\_client.DefaultGenericMobileDriver.(DefaultGenericMobileDriver.java:38) at io.appium.java\_client.AppiumDriver.(AppiumDriver.java:84) at io.appium.java\_client.ios.IOSDriver.(IOSDriver.java:85) at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:496) at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startRemoteMobileDriver(MobileDriverFactory.java:546) at com.kms.katalon.composer.mobile.objectspy.dialog.MobileInspectorController.startMobileAppOnCloudDevices(MobileInspectorController.java:239) at com.kms.katalon.composer.mobile.objectspy.components.RemoteAppComposite$1$1.call(RemoteAppComposite.java:115) at com.kms.katalon.composer.components.impl.dialogs.ProgressMonitorDialogWithThread.startThreadAndWait(ProgressMonitorDialogWithThread.java:36) at com.kms.katalon.composer.components.impl.dialogs.ProgressMonitorDialogWithThread.runAndWait(ProgressMonitorDialogWithThread.java:48) … 2 more Caused by: java.lang.reflect.InvocationTargetException at io.appium.java\_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:186) … 19 more Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65 xcodebuild error message: . Make sure you follow the tutorial at [https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md](https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md). Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device. Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’ System info: host: ‘X0825’, ip: ‘fe80:0:0:0:ee:a2a2:87d3:54d0%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86\_64’, os.version: ‘10.16’, java.version: ‘1.8.0\_275’ Driver info: driver.version: IOSDriver remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65 xcodebuild error message: . Make sure you follow the tutorial at [https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md](https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md). Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device. at getResponseForW3CError (/Applications/Appium Server GUI.app/Contents/Resources/app/node\_modules/appium/node\_modules/appium-base-driver/lib/protocol/errors.js:804:9) at asyncHandler (/Applications/Appium Server GUI.app/Contents/Resources/app/node\_modules/appium/node\_modules/appium-base-driver/lib/protocol/protocol.js:380:37) at runNextTicks (internal/process/task\_queues.js:58:5) at processImmediate (internal/timers.js:412:9) at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$errorHandler$0(W3CHandshakeResponse.java:62) at org.openqa.selenium.remote.HandshakeResponse.lambda$getResponseFunction$0(HandshakeResponse.java:30) at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:126) at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:128) … 20 more

 ![Screen Shot 2022-03-15 at 11.01.04 AM](https://europe1.discourse-cdn.com/katalon/original/3X/a/3/a3c8ae2976325b153ecdff0633a015fabf949bc1.png)

---

<div class="post-metadata">

**Author:** ![duyluong](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/duyluong/32/1116_2.png) [@duyluong](https://forum.katalon.com/u/duyluong)\
**Post date:** [March 16, 2022, 4:14am UTC](https://forum.katalon.com/t/mac-install-webdriveragent-dependencies-failed/62880/14 "2022-03-16T04:14:20Z")

</div>

@xin.xin

> [@xin.xin](#):
>
> xcodebuild failed with code 65

> Your .ipa application and/or WebDriverAgent is not signed correctly.

Please refer to our troubleshooting common error: [https://docs.katalon.com/katalon-studio/docs/troubleshooting-automated-mobile-testing.html](https://docs.katalon.com/katalon-studio/docs/troubleshooting-automated-mobile-testing.html)  
Solutions:

- Sign and rebuild the WebDriverAgent XCode project with your developer certificate.
- Uncheck ‘Automatically Signing’ option from WebDriverAgentRunner and select **valid provisioning profile** (profile displayed as Eligible from the list).

Did you start the session with real device successfully with Appium Desktop?

---

<div class="post-metadata">

**Author:** ![xin.xin](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/xin.xin/32/16104_2.png) [@xin.xin](https://forum.katalon.com/u/xin.xin)\
**Post date:** [March 16, 2022, 5:16am UTC](https://forum.katalon.com/t/mac-install-webdriveragent-dependencies-failed/62880/15 "2022-03-16T05:16:27Z")

</div>

@duyluong  
Hi, thanks so much for your continued support.

1. Yes, I have started the app with a real device successfully with Appium Desktop, please see the attachment.  

2. And about you mentioned, if I uncheck “Automatically Signing” option, i could not find any useful profile from the selection list. 

3. I tried to rebuild successfully again, but still cannot launch the App from target real device by remote way.

---

<div class="post-metadata">

**Author:** ![xin.xin](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/xin.xin/32/16104_2.png) [@xin.xin](https://forum.katalon.com/u/xin.xin)\
**Post date:** [April 21, 2022, 6:51am UTC](https://forum.katalon.com/t/mac-install-webdriveragent-dependencies-failed/62880/16 "2022-04-21T06:51:34Z")

</div>

I can launch the app on iOS after upgrade Katalon to V 8.3.0, and only launch by Remote(launch appium in terminal) can be success, still cannot launch on real iOS by Katalon iOS.

Really very happy that Katalon can run the real iOS by setting and running Remote way.
