# Unable to capture objects WebDriverException in iOS Real device while trying to record

**URL:** <https://forum.katalon.com/t/unable-to-capture-objects-webdriverexception-in-ios-real-device-while-trying-to-record/110814>\
**Category:** Bug Report\
**Tags:** ios, mobile-testing, bugs-report, katalon-studio\
**Created:** [December 14, 2023, 7:31am UTC](https://forum.katalon.com/t/unable-to-capture-objects-webdriverexception-in-ios-real-device-while-trying-to-record/110814 "2023-12-14T07:31:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ini.ramesh](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/ini.ramesh/32/23870_2.png) [@ini.ramesh](https://forum.katalon.com/u/ini.ramesh)\
**Post date:** [December 14, 2023, 7:31am UTC](https://forum.katalon.com/t/unable-to-capture-objects-webdriverexception-in-ios-real-device-while-trying-to-record/110814/1 "2023-12-14T07:31:21Z")

</div>

Hello I am trying to set up mobile automation on REAL iOS device.

I am able to install webdriveragent into the real device I have connected  
I can launch the coffeetimer ipa application and rrun elated tests in the sample project on the device

But when i start recording on the same device, I get the below error and Device View does not display my connected device as shown in the below image

 ![Screenshot 2023-12-13 at 11.10.10 PM](https://europe1.discourse-cdn.com/katalon/original/3X/d/0/d04f138d02569bb4e4564be9b23ce0466060072b.jpeg)

Also- I have added all the desired capabilities

 ![Screenshot 2023-12-13 at 11.13.09 PM](https://europe1.discourse-cdn.com/katalon/original/3X/4/6/467b647edd62ec9a60fa4228480664096391610e.jpeg)

Other details:  
Appium Version- 2.2.3  
Xcode Version- Version 15.1 (15C65)  
Katalon Version- 9.1.0

Please let me know if you guys need any other details. Please help!

Tagging @albert.vu since I saw you answering a few questions on the same topic. Thanks so much in advance!

---

<div class="post-metadata">

**Author:** ![ini.ramesh](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/ini.ramesh/32/23870_2.png) [@ini.ramesh](https://forum.katalon.com/u/ini.ramesh)\
**Post date:** [December 14, 2023, 6:46pm UTC](https://forum.katalon.com/t/unable-to-capture-objects-webdriverexception-in-ios-real-device-while-trying-to-record/110814/2 "2023-12-14T18:46:24Z")

</div>

Any pointers here? @phong.nguyen @Elly_Tran @Chris_Trevarthen

---

<div class="post-metadata">

**Author:** ![phong.nguyen](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/phong.nguyen/32/26121_2.png) [@phong.nguyen](https://forum.katalon.com/u/phong.nguyen)\
**Post date:** [December 15, 2023, 3:31am UTC](https://forum.katalon.com/t/unable-to-capture-objects-webdriverexception-in-ios-real-device-while-trying-to-record/110814/3 "2023-12-15T03:31:03Z")

</div>

I see the socket hang up error from Appium log, it could be the Appium is stopped un-expectation, so the fixing is restart the Spy/Recorder session.

From 9.1.0, we had implemented the help on install dependencies and web driver agent, could you please try to follow steps:

1. Select Tools \> Set up iOS Environment \> Install Dependencies
2. Select Tools \> Set up iOS Environment \> Set up WebDriverAgent
3. Try record again.

If possible, please remove all installed homebrew, appium, node, so KS could help you install the fresh ones.
