Not able to execute test on ios mobile device

Hello everyone

I need help to setup mac device for ios testing. I have followed the document provided on kataon site to configure node, appium , xcode for ios testing but I am getting below error while starting the application in ios device, app is installed on the ios device but its stuck in katalon window with following error.

“socket hang up”

and then finally it fails with below error.

“Got response with status 500: {“value”:{“error”:“session not created”,“message”:“Failed to launch com.upc.horizon.UPCTV.development.regular application”,“traceback”:”"},“sessionId”:null}"

Katalon version : 7.2.1
Appium : 1.18.0
Node : v14.7.0
NPM : 6.14.7
Xcode : 11.3.1

Thanks

@coe-test-and-deploym

Can you provide us the full stack-trace?

e[35m[Appium]e[39m Welcome to Appium v1.18.0
e[35m[Appium]e[39m Welcome to Appium v1.18.0
e[35m[Appium]e[39m Welcome to Appium v1.18.0
e[35m[Appium]e[39m Welcome to Appium v1.18.0
e[35m[Appium]e[39m Non-default server args:
e[35m[Appium]e[39m Non-default server args:
e[35m[Appium]e[39m Non-default server args:
e[35m[Appium]e[39m Non-default server args:
e[35m[Appium]e[39m port: 58510
e[35m[Appium]e[39m port: 58510
e[35m[Appium]e[39m port: 58510
e[35m[Appium]e[39m port: 58510
e[35m[Appium]e[39m loglevel: info
e[35m[Appium]e[39m loglevel: info
e[35m[Appium]e[39m loglevel: info
e[35m[Appium]e[39m loglevel: info
e[35m[Appium]e[39m tmpDir: /var/folders/1l/zfz5y1555rx2bx4r6rl2565r0000gn/T//Katalon/Appium/Temp1597049871883
e[35m[Appium]e[39m tmpDir: /var/folders/1l/zfz5y1555rx2bx4r6rl2565r0000gn/T//Katalon/Appium/Temp1597049871883
e[35m[Appium]e[39m tmpDir: /var/folders/1l/zfz5y1555rx2bx4r6rl2565r0000gn/T//Katalon/Appium/Temp1597049871883
e[35m[Appium]e[39m tmpDir: /var/folders/1l/zfz5y1555rx2bx4r6rl2565r0000gn/T//Katalon/Appium/Temp1597049871883
e[35m[Appium]e[39m chromedriverPort: 58511
e[35m[Appium]e[39m chromedriverPort: 58511
e[35m[Appium]e[39m chromedriverPort: 58511
e[35m[Appium]e[39m chromedriverPort: 58511
e[35m[Appium]e[39m Deprecated server args:
e[35m[Appium]e[39m Deprecated server args:
e[35m[Appium]e[39m Deprecated server args:
e[35m[Appium]e[39m Deprecated server args:
e[35m[Appium]e[39m e[31m–chromedriver-porte[39m => --default-capabilities ‘{“chromedriverPort”:58511}’
e[35m[Appium]e[39m e[31m–chromedriver-porte[39m => --default-capabilities ‘{“chromedriverPort”:58511}’
e[35m[Appium]e[39m e[31m–chromedriver-porte[39m => --default-capabilities ‘{“chromedriverPort”:58511}’
e[35m[Appium]e[39m e[31m–chromedriver-porte[39m => --default-capabilities ‘{“chromedriverPort”:58511}’
e[35m[Appium]e[39m Default capabilities, which will be added to each request unless overridden by desired capabilities:
e[35m[Appium]e[39m Default capabilities, which will be added to each request unless overridden by desired capabilities:
e[35m[Appium]e[39m Default capabilities, which will be added to each request unless overridden by desired capabilities:
e[35m[Appium]e[39m Default capabilities, which will be added to each request unless overridden by desired capabilities:
e[35m[Appium]e[39m chromedriverPort: 58511
e[35m[Appium]e[39m chromedriverPort: 58511
e[35m[Appium]e[39m chromedriverPort: 58511
e[35m[Appium]e[39m chromedriverPort: 58511
e[35m[Appium]e[39m Appium REST http interface listener started on 0.0.0.0:58510
e[35m[Appium]e[39m Appium REST http interface listener started on 0.0.0.0:58510
e[35m[Appium]e[39m Appium REST http interface listener started on 0.0.0.0:58510
e[35m[Appium]e[39m Appium REST http interface listener started on 0.0.0.0:58510
e[35m[HTTP]e[39m e[37m–>e[39m e[37mGETe[39m e[37m/wd/hub/statuse[39m
e[35m[HTTP]e[39m e[90m{}e[39m
e[35m[HTTP]e[39m e[37m–>e[39m e[37mGETe[39m e[37m/wd/hub/statuse[39m
e[35m[HTTP]e[39m e[37m<-- GET /wd/hub/status e[39me[32m200e[39m e[90m6 ms - 68e[39m
e[35m[HTTP]e[39m e[37m–>e[39m e[37mGETe[39m e[37m/wd/hub/statuse[39m
e[35m[HTTP]e[39m e[90m{}e[39m
e[35m[HTTP]e[39m e[90me[39m
e[35m[HTTP]e[39m e[90m{}e[39m
e[35m[HTTP]e[39m e[37m<-- GET /wd/hub/status e[39me[32m200e[39m e[90m6 ms - 68e[39m
e[35m[HTTP]e[39m e[37m–>e[39m e[37mGETe[39m e[37m/wd/hub/statuse[39m
e[35m[HTTP]e[39m e[37m<-- GET /wd/hub/status e[39me[32m200e[39m e[90m6 ms - 68e[39m
e[35m[HTTP]e[39m e[90me[39m
e[35m[HTTP]e[39m e[90m{}e[39m
e[35m[HTTP]e[39m e[90me[39m
e[35m[HTTP]e[39m e[37m<-- GET /wd/hub/status e[39me[32m200e[39m e[90m6 ms - 68e[39m
e[35m[HTTP]e[39m e[90me[39m
e[35m[HTTP]e[39m e[37m–>e[39m e[37mGETe[39m e[37m/wd/hub/statuse[39m
e[35m[HTTP]e[39m e[37m–>e[39m e[37mGETe[39m e[37m/wd/hub/statuse[39m
e[35m[HTTP]e[39m e[37m–>e[39m e[37mGETe[39m e[37m/wd/hub/statuse[39m
e[35m[HTTP]e[39m e[37m–>e[39m e[37mGETe[39m e[37m/wd/hub/statuse[39m
e[35m[HTTP]e[39m e[90m{}e[39m
e[35m[HTTP]e[39m e[90m{}e[39m
e[35m[HTTP]e[39m e[90m{}e[39m
e[35m[HTTP]e[39m e[90m{}e[39m
e[35m[HTTP]e[39m e[37m<-- GET /wd/hub/status e[39me[32m200e[39m e[90m1 ms - 68e[39m
e[35m[HTTP]e[39m e[37m<-- GET /wd/hub/status e[39me[32m200e[39m e[90m1 ms - 68e[39m
e[35m[HTTP]e[39m e[37m<-- GET /wd/hub/status e[39me[32m200e[39m e[90m1 ms - 68e[39m
e[35m[HTTP]e[39m e[37m<-- GET /wd/hub/status e[39me[32m200e[39m e[90m1 ms - 68e[39m
e[35m[HTTP]e[39m e[90me[39m
e[35m[HTTP]e[39m e[90me[39m
e[35m[HTTP]e[39m e[90me[39m
e[35m[HTTP]e[39m e[90me[39m
e[35m[HTTP]e[39m e[37m–>e[39m e[37mPOSTe[39m e[37m/wd/hub/sessione[39m
e[35m[HTTP]e[39m e[37m–>e[39m e[37mPOSTe[39m e[37m/wd/hub/sessione[39m
e[35m[HTTP]e[39m e[37m–>e[39m e[37mPOSTe[39m e[37m/wd/hub/sessione[39m
e[35m[HTTP]e[39m e[37m–>e[39m e[37mPOSTe[39m e[37m/wd/hub/sessione[39m
e[35m[HTTP]e[39m e[90m{“desiredCapabilities”:{“app”:"/Users/macmini3/Documents/Horizon Go.ipa",“noReset”:true,“deviceName”:“E2E¬タルs iPad”,“fullReset”:false,“wdaLocalPort”:58523,“newCommandTimeout”:1800,“realDeviceLogger”:"/Applications/Katalon Studio.app/Contents/Eclipse/configuration/resources/tools/deviceconsole",“platformVersion”:“12.3.1”,“automationName”:“XCUITest”,“waitForAppScript”:“true;”,“platformName”:“iOS”,“udid”:“bc75cda760d88effc628bbb7ee4a1e50efdfd61b”},“capabilities”:{“firstMatch”:[{“appium:app”:"/Users/macmini3/Documents/Horizon Go.ipa",“appium:automationName”:“XCUITest”,“appium:deviceName”:“E2E¬タルs iPad”,“appium:fullReset”:false,“appium:newCommandTimeout”:1800,“appium:noReset”:true,“platformName”:“ios”,“appium:platformVersion”:“12.3.1”,“realDeviceLogger”:"/Applications/Katalon Studio.app/Contents/Eclipse/configuration/resources/tools/deviceconsole",“appium:udid”:“bc75cda760d88effc628bbb7ee4a1e50efdfd61b”,“appium:waitForAppScript”:“true;”,“appium:wdaLocalPort”:58523}]}}e[39m
e[35m[HTTP]e[39m e[90m{“desiredCapabilities”:{“app”:"/Users/macmini3/Documents/Horizon Go.ipa",“noReset”:true,“deviceName”:“E2E¬タルs iPad”,“fullReset”:false,“wdaLocalPort”:58523,“newCommandTimeout”:1800,“realDeviceLogger”:"/Applications/Katalon Studio.app/Contents/Eclipse/configuration/resources/tools/deviceconsole",“platformVersion”:“12.3.1”,“automationName”:“XCUITest”,“waitForAppScript”:“true;”,“platformName”:“iOS”,“udid”:“bc75cda760d88effc628bbb7ee4a1e50efdfd61b”},“capabilities”:{“firstMatch”:[{“appium:app”:"/Users/macmini3/Documents/Horizon Go.ipa",“appium:automationName”:“XCUITest”,“appium:deviceName”:“E2E¬タルs iPad”,“appium:fullReset”:false,“appium:newCommandTimeout”:1800,“appium:noReset”:true,“platformName”:“ios”,“appium:platformVersion”:“12.3.1”,“realDeviceLogger”:"/Applications/Katalon Studio.app/Contents/Eclipse/configuration/resources/tools/deviceconsole",“appium:udid”:“bc75cda760d88effc628bbb7ee4a1e50efdfd61b”,“appium:waitForAppScript”:“true;”,“appium:wdaLocalPort”:58523}]}}e[39m
e[35m[HTTP]e[39m e[90m{“desiredCapabilities”:{“app”:"/Users/macmini3/Documents/Horizon Go.ipa",“noReset”:true,“deviceName”:“E2E¬タルs iPad”,“fullReset”:false,“wdaLocalPort”:58523,“newCommandTimeout”:1800,“realDeviceLogger”:"/Applications/Katalon Studio.app/Contents/Eclipse/configuration/resources/tools/deviceconsole",“platformVersion”:“12.3.1”,“automationName”:“XCUITest”,“waitForAppScript”:“true;”,“platformName”:“iOS”,“udid”:“bc75cda760d88effc628bbb7ee4a1e50efdfd61b”},“capabilities”:{“firstMatch”:[{“appium:app”:"/Users/macmini3/Documents/Horizon Go.ipa",“appium:automationName”:“XCUITest”,“appium:deviceName”:“E2E¬タルs iPad”,“appium:fullReset”:false,“appium:newCommandTimeout”:1800,“appium:noReset”:true,“platformName”:“ios”,“appium:platformVersion”:“12.3.1”,“realDeviceLogger”:"/Applications/Katalon Studio.app/Contents/Eclipse/configuration/resources/tools/deviceconsole",“appium:udid”:“bc75cda760d88effc628bbb7ee4a1e50efdfd61b”,“appium:waitForAppScript”:“true;”,“appium:wdaLocalPort”:58523}]}}e[39m
e[35m[HTTP]e[39m e[90m{“desiredCapabilities”:{“app”:"/Users/macmini3/Documents/Horizon Go.ipa",“noReset”:true,“deviceName”:“E2E¬タルs iPad”,“fullReset”:false,“wdaLocalPort”:58523,“newCommandTimeout”:1800,“realDeviceLogger”:"/Applications/Katalon Studio.app/Contents/Eclipse/configuration/resources/tools/deviceconsole",“platformVersion”:“12.3.1”,“automationName”:“XCUITest”,“waitForAppScript”:“true;”,“platformName”:“iOS”,“udid”:“bc75cda760d88effc628bbb7ee4a1e50efdfd61b”},“capabilities”:{“firstMatch”:[{“appium:app”:"/Users/macmini3/Documents/Horizon Go.ipa",“appium:automationName”:“XCUITest”,“appium:deviceName”:“E2E¬タルs iPad”,“appium:fullReset”:false,“appium:newCommandTimeout”:1800,“appium:noReset”:true,“platformName”:“ios”,“appium:platformVersion”:“12.3.1”,“realDeviceLogger”:"/Applications/Katalon Studio.app/Contents/Eclipse/configuration/resources/tools/deviceconsole",“appium:udid”:“bc75cda760d88effc628bbb7ee4a1e50efdfd61b”,“appium:waitForAppScript”:“true;”,“appium:wdaLocalPort”:58523}]}}e[39m
e[35m[BaseDriver]e[39m The following capabilities are not standard capabilities and should have an extension prefix:
e[35m[BaseDriver]e[39m The following capabilities are not standard capabilities and should have an extension prefix:
e[35m[BaseDriver]e[39m The following capabilities are not standard capabilities and should have an extension prefix:
e[35m[BaseDriver]e[39m The following capabilities are not standard capabilities and should have an extension prefix:
e[35m[BaseDriver]e[39m realDeviceLogger
e[35m[BaseDriver]e[39m realDeviceLogger
e[35m[BaseDriver]e[39m realDeviceLogger
e[35m[BaseDriver]e[39m realDeviceLogger
e[35m[BaseDriver]e[39m chromedriverPort
e[35m[BaseDriver]e[39m chromedriverPort
e[35m[BaseDriver]e[39m chromedriverPort
e[35m[BaseDriver]e[39m chromedriverPort
e[35m[Appium]e[39m Appium v1.18.0 creating new XCUITestDriver (v3.25.0) session
e[35m[BaseDriver]e[39m The following capabilities were provided, but are not recognized by Appium:
e[35m[Appium]e[39m Appium v1.18.0 creating new XCUITestDriver (v3.25.0) session
e[35m[Appium]e[39m Appium v1.18.0 creating new XCUITestDriver (v3.25.0) session
e[35m[BaseDriver]e[39m chromedriverPort
e[35m[BaseDriver]e[39m The following capabilities were provided, but are not recognized by Appium:
e[35m[Appium]e[39m Appium v1.18.0 creating new XCUITestDriver (v3.25.0) session
e[35m[BaseDriver]e[39m The following capabilities were provided, but are not recognized by Appium:
e[35m[BaseDriver]e[39m Session created with session id: 4a3e4276-d6d3-4df2-8c5c-df9b37a56c75
e[35m[BaseDriver]e[39m chromedriverPort
e[35m[BaseDriver]e[39m The following capabilities were provided, but are not recognized by Appium:
e[35m[BaseDriver]e[39m chromedriverPort
e[35m[XCUITest]e[39m Determining device to run tests on: udid: ‘bc75cda760d88effc628bbb7ee4a1e50efdfd61b’, real device: true
e[35m[BaseDriver]e[39m Session created with session id: 4a3e4276-d6d3-4df2-8c5c-df9b37a56c75
e[35m[BaseDriver]e[39m chromedriverPort
e[35m[BaseDriver]e[39m Session created with session id: 4a3e4276-d6d3-4df2-8c5c-df9b37a56c75
e[35m[XCUITest]e[39m Normalized platformVersion capability value ‘12.3.1’ to ‘12.3’
e[35m[XCUITest]e[39m Determining device to run tests on: udid: ‘bc75cda760d88effc628bbb7ee4a1e50efdfd61b’, real device: true
e[35m[BaseDriver]e[39m Session created with session id: 4a3e4276-d6d3-4df2-8c5c-df9b37a56c75
e[35m[XCUITest]e[39m Determining device to run tests on: udid: ‘bc75cda760d88effc628bbb7ee4a1e50efdfd61b’, real device: true
e[35m[BaseDriver]e[39m Using local app ‘/Users/macmini3/Documents/Horizon Go.ipa’
e[35m[XCUITest]e[39m Normalized platformVersion capability value ‘12.3.1’ to ‘12.3’
e[35m[XCUITest]e[39m Determining device to run tests on: udid: ‘bc75cda760d88effc628bbb7ee4a1e50efdfd61b’, real device: true
e[35m[XCUITest]e[39m Normalized platformVersion capability value ‘12.3.1’ to ‘12.3’
e[35m[BaseDriver]e[39m Using local app ‘/Users/macmini3/Documents/Horizon Go.ipa’
e[35m[XCUITest]e[39m Normalized platformVersion capability value ‘12.3.1’ to ‘12.3’
e[35m[BaseDriver]e[39m Using local app ‘/Users/macmini3/Documents/Horizon Go.ipa’
e[35m[BaseDriver]e[39m Using local app ‘/Users/macmini3/Documents/Horizon Go.ipa’
e[35m[BaseDriver]e[39m Unzipped local app to ‘/var/folders/1l/zfz5y1555rx2bx4r6rl2565r0000gn/T/Katalon/Appium/Temp1597049871883/2020710-14029-11l5cwv.zul4/HorizonGo.app’
e[35m[BaseDriver]e[39m Unzipped local app to ‘/var/folders/1l/zfz5y1555rx2bx4r6rl2565r0000gn/T/Katalon/Appium/Temp1597049871883/2020710-14029-11l5cwv.zul4/HorizonGo.app’
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 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[WebDriverAgent]e[39m Using WDA agent: ‘/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj’
e[35m[BaseDriver]e[39m Unzipped local app to ‘/var/folders/1l/zfz5y1555rx2bx4r6rl2565r0000gn/T/Katalon/Appium/Temp1597049871883/2020710-14029-11l5cwv.zul4/HorizonGo.app’
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[BaseDriver]e[39m Unzipped local app to ‘/var/folders/1l/zfz5y1555rx2bx4r6rl2565r0000gn/T/Katalon/Appium/Temp1597049871883/2020710-14029-11l5cwv.zul4/HorizonGo.app’
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 Setting up real device
e[35m[XCUITest]e[39m Setting up real device
e[35m[XCUITest]e[39m Setting up real device
e[35m[XCUITest]e[39m Setting up real device
e[35m[DevCon Factory]e[39m Requesting connection for device bc75cda760d88effc628bbb7ee4a1e50efdfd61b on local port 58523, device port 58523
e[35m[DevCon Factory]e[39m Successfully requested the connection for bc75cda760d88effc628bbb7ee4a1e50efdfd61b:58523
e[35m[DevCon Factory]e[39m Requesting connection for device bc75cda760d88effc628bbb7ee4a1e50efdfd61b on local port 58523, device port 58523
e[35m[DevCon Factory]e[39m Successfully requested the connection for bc75cda760d88effc628bbb7ee4a1e50efdfd61b:58523
e[35m[DevCon Factory]e[39m Requesting connection for device bc75cda760d88effc628bbb7ee4a1e50efdfd61b on local port 58523, device port 58523
e[35m[DevCon Factory]e[39m Successfully requested the connection for bc75cda760d88effc628bbb7ee4a1e50efdfd61b:58523
e[35m[DevCon Factory]e[39m Requesting connection for device bc75cda760d88effc628bbb7ee4a1e50efdfd61b on local port 58523, device port 58523
e[35m[DevCon Factory]e[39m Successfully requested the connection for bc75cda760d88effc628bbb7ee4a1e50efdfd61b:58523
e[35m[WD Proxy]e[39m socket hang up
e[35m[WebDriverAgent]e[39m Launching WebDriverAgent on the device
e[35m[WebDriverAgent]e[39m Fetching dependencies
e[35m[WD Proxy]e[39m socket hang up
e[35m[WebDriverAgent]e[39m Dependencies up-to-date
e[35m[WebDriverAgent]e[39m Launching WebDriverAgent on the device
e[35m[WebDriverAgent]e[39m Fetching dependencies
e[35m[WebDriverAgent]e[39m Dependencies up-to-date
e[35m[WD Proxy]e[39m socket hang up
e[35m[WebDriverAgent]e[39m Launching WebDriverAgent on the device
e[35m[WebDriverAgent]e[39m Fetching dependencies
e[35m[WD Proxy]e[39m socket hang up
e[35m[WebDriverAgent]e[39m Dependencies up-to-date
e[35m[WebDriverAgent]e[39m Launching WebDriverAgent on the device
e[35m[WebDriverAgent]e[39m Fetching dependencies
e[35m[WebDriverAgent]e[39m Dependencies up-to-date
e[35m[WD Proxy]e[39m socket hang up
e[35m[WD Proxy]e[39m socket hang up
e[35m[WD Proxy]e[39m socket hang up
e[35m[WD Proxy]e[39m socket hang up
e[35m[WD Proxy]e[39m socket hang up
e[35m[WD Proxy]e[39m socket hang up
e[35m[WD Proxy]e[39m socket hang up
e[35m[WD Proxy]e[39m socket hang up
e[35m[WD Proxy]e[39m socket hang up
e[35m[WD Proxy]e[39m socket hang up
e[35m[WD Proxy]e[39m socket hang up
e[35m[WD Proxy]e[39m socket hang up
e[35m[WD Proxy]e[39m socket hang up
e[35m[WD Proxy]e[39m socket hang up
e[35m[WD Proxy]e[39m socket hang up
e[35m[WD Proxy]e[39m socket hang up
e[35m[WD Proxy]e[39m socket hang up
e[35m[WD Proxy]e[39m socket hang up
e[35m[WD Proxy]e[39m socket hang up
e[35m[WD Proxy]e[39m socket hang up
e[35m[WD Proxy]e[39m socket hang up
e[35m[WD Proxy]e[39m socket hang up
e[35m[WD Proxy]e[39m socket hang up
e[35m[WD Proxy]e[39m socket hang up
e[35m[WD Proxy]e[39m socket hang up
e[35m[WD Proxy]e[39m socket hang up
e[35m[WD Proxy]e[39m socket hang up
e[35m[WD Proxy]e[39m socket hang up
e[35m[WD Proxy]e[39m Got response with status 500: {“value”:{“error”:“session not created”,“message”:“Failed to launch com.upc.horizon.UPCTV.development.regular application”,“traceback”:""},“sessionId”:null}
e[35m[WD Proxy]e[39m Got response with status 500: {“value”:{“error”:“session not created”,“message”:“Failed to launch com.upc.horizon.UPCTV.development.regular application”,“traceback”:""},“sessionId”:null}
e[35m[WD Proxy]e[39m Got response with status 500: {“value”:{“error”:“session not created”,“message”:“Failed to launch com.upc.horizon.UPCTV.development.regular application”,“traceback”:""},“sessionId”:null}
e[35m[WD Proxy]e[39m Got response with status 500: {“value”:{“error”:“session not created”,“message”:“Failed to launch com.upc.horizon.UPCTV.development.regular application”,“traceback”:""},“sessionId”:null}