IOS test shows Error 2

Hello,

Every time i attempt to run the IOS recorder I receive this error. I can not find any documentation on the error.
Can anyone assist?

Thanks,

Tom

Hi @thester,

Can you please confirm the version of Appium you’re using? For best compatibility with iOS testing, Appium Server 1.8.2-beta is recommended:

Here are some docs on installing WebDriverAgent which may also help:

https://docs.katalon.com/katalon-studio/docs/installing-webdriveragent-for-ios-devices.html

Hope this helps,
Chris

Thank your for your response Chris. I am on Appium 1.8.2-Beta. I found that i had to do this in the command line:

cd /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent
npm i -g webpack
./Scripts/bootstrap.sh -d

This enabled me to record test cases.

I am now finding a new problem with running an IOS test case.

Im getting:

XCUITest] Simulator architecture appears to be unsupported by the ‘/var/folders/bd/qhq04zz53fl50lsxrn88t9880000gn/T/201925-82229-1el1v1n.cvt2/Payload/MortgageApp.app’ application. Make sure the correct deployment target has been selected for its compilation in Xcode.

[XCUITest] Don’t be surprised if the application fails to launch.

[XCUITest] *********************************

Hi @thester,

This could be an issue with how the .app file was built. To run on a simulator, it needs to be built with the x86 architecture; this is different from the arm architectures on real devices.

You can check the architectures supported by your app with:

lipo -info MortgageApp.app/MortgageApp

If it doesn’t show something starting with x86, then you can rebuild it for a simulator:

  1. Open your project in Xcode
  2. From the device drop-down near the top of the screen, select one of the iOS simulator devices
  3. From the “Product” menu choose “Build”
  4. This will create a new simulator-targeted MortgageApp.app file in the configured DerivedData directory (you can set this directory in the Xcode->Preferences->Locations options)
  5. Use the new .app file in your Katalon tests

Hope this helps,

Chris

Hi Chris,

I was able to locate the .app through DerivedData. However, Im now getting an error that says:

Appium] Welcome to Appium v1.8.2-beta
[Appium] Non-default server args:
[Appium] port: 54584
[Appium] loglevel: info
[Appium] chromeDriverPort: 54585
[Appium] tmpDir: /var/folders/bd/qhq04zz53fl50lsxrn88t9880000gn/T//Katalon/Appium/Temp1551913936491
[Appium] Appium REST http interface listener started on 0.0.0.0:54584
[HTTP] → GET /wd/hub/status
[HTTP] {}
[HTTP] ← GET /wd/hub/status 200 22 ms - 88
[HTTP]
[HTTP] → GET /wd/hub/status
[HTTP] {}
[HTTP] ← GET /wd/hub/status 200 22 ms - 88
[HTTP]
[HTTP] → POST /wd/hub/session
[HTTP] {“desiredCapabilities”:{“app”:“/Users/tomhester/Dev/MortgageApp-bnsxddddbrzlcwbbtohubhgseugo/Build/Products/Debug-iphonesimulator/MortgageApp.app”,“automationName”:“XCUITest”,“deviceName”:“iPhone XS Max”,“fullReset”:false,“newCommandTimeout”:1800,“noReset”:true,“platformName”:“iOS”,“realDeviceLogger”:“/Applications/Katalon Studio.app/Contents/Eclipse/configuration/resources/tools/deviceconsole/deviceconsole”,“udid”:“92679EED-F88B-4457-AAD6-842CCD72208F”,“waitForAppScript”:“true;”,“wdaLocalPort”:54615},“capabilities”:{“desiredCapabilities”:{“app”:“/Users/tomhester/Dev/MortgageApp-bnsxddddbrzlcwbbtohubhgseugo/Build/Products/Debug-iphonesimulator/MortgageApp.app”,“automationName”:“XCUITest”,“deviceName”:“iPhone XS Max”,“fullReset”:false,“newCommandTimeout”:1800,“noReset”:true,“platformName”:“iOS”,“realDeviceLogger”:“/Applications/Katalon Studio.app/Contents/Eclipse/configuration/resources/tools/deviceconsole/deviceconsole”,“udid”:“92679EED-F88B-4457-AAD6-842CCD72208F”,“waitForAppScript”:"
[Appium] Could not parse W3C capabilities: ‘deviceName’ can’t be blank. Falling back to JSONWP protocol.
[Appium] The following capabilities were provided in the JSONWP desired capabilities that are missing in W3C capabilities: [“app”,“automationName”,“deviceName”,“fullReset”,“newCommandTimeout”,“noReset”,“platformName”,“realDeviceLogger”,“udid”,“waitForAppScript”,“wdaLocalPort”]. Falling back to JSONWP protocol.
[Appium] Creating new XCUITestDriver (v2.109.0) session
[Appium] Capabilities:
[Appium] app: /Users/tomhester/Dev/MortgageApp-bnsxddddbrzlcwbbtohubhgseugo/Build/Products/Debug-iphonesimulator/MortgageApp.app
[Appium] automationName: XCUITest
[Appium] deviceName: iPhone XS Max
[Appium] fullReset: false
[Appium] newCommandTimeout: 1800
[Appium] noReset: true
[Appium] platformName: iOS
[Appium] realDeviceLogger: /Applications/Katalon Studio.app/Contents/Eclipse/configuration/resources/tools/deviceconsole/deviceconsole
[Appium] udid: 92679EED-F88B-4457-AAD6-842CCD72208F
[Appium] waitForAppScript: true;
[Appium] wdaLocalPort: 54615
[BaseDriver] Session created with session id: 70dd2f7b-9365-428b-b60d-d2330ad4e68c
[iOSSim] Constructing iOS simulator for Xcode version 10.1 with udid ‘92679EED-F88B-4457-AAD6-842CCD72208F’
[XCUITest] Determining device to run tests on: udid: ‘92679EED-F88B-4457-AAD6-842CCD72208F’, real device: false
[XCUITest] No platformVersion specified. Using device version: ‘12.1’
[BaseDriver] Using local app ‘/Users/tomhester/Dev/MortgageApp-bnsxddddbrzlcwbbtohubhgseugo/Build/Products/Debug-iphonesimulator/MortgageApp.app’
[XCUITest] Setting up simulator
[iOSSim] Booting Simulator with UDID 92679EED-F88B-4457-AAD6-842CCD72208F…
[iOSSim] Starting Simulator UI with command: open -Fn /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app --args -CurrentDeviceUDID 92679EED-F88B-4457-AAD6-842CCD72208F -ConnectHardwareKeyboard 0
[iOSSim] Simulator with UDID 92679EED-F88B-4457-AAD6-842CCD72208F booted in 13 seconds
[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’

[WD Proxy] Got an unexpected response: {“errno”:“ECONNREFUSED”,“code”:“ECONNREFUSED”,“syscall”:“connect”,“address”:“127.0.0.1”,“port”:54615}
[XCUITest] Launching WebDriverAgent on the device
[WD Proxy] Got an unexpected response: {“code”:“ECONNRESET”}
[XCUITest] xcodebuild exited with code ‘null’ and signal ‘SIGKILL’
[WD Proxy] Got an unexpected response: {“errno”:“ECONNREFUSED”,“code”:“ECONNREFUSED”,“syscall”:“connect”,“address”:“127.0.0.1”,“port”:54339}
[WD Proxy] Got an unexpected response: This text will be hidden

25%20PM

Hi Tom,

This issue could be caused by a couple of things:

Clearing Appium Processes

Sometimes there are rogue appium processes that don’t exit when there are Katalon errors. These can interview with new tests and causes them to be unresponsive. To try to clear these out, the most straightforward way is to quit Katalon, close the simulators, and restart your computer.

Alternatively, you can check to see if there are running appium processes in the Terminal using ps -ef | grep appium. You might see something like this:

  501 48742     1   0 Fri02PM ??         0:04.12 /usr/local/Cellar/node/9.11.1/bin/node /Users/chris/.nvm/versions/node/v9.2.0/lib/node_modules/appium/build/lib/main.js --tmp /var/folders/90/26pjk1q50wd9xfn9q3q6tkyc0000gn/T//Katalon/Appium/Temp1551470186488 -p 55334 --chromedriver-port 55335 --log-level info --webkit-debug-proxy-port 0
  501 60974     1   0 Sat11PM ??         0:40.81 /usr/local/Cellar/node/9.11.1/bin/node /Users/chris/.nvm/versions/node/v9.2.0/lib/node_modules/appium/build/lib/main.js --tmp /var/folders/90/26pjk1q50wd9xfn9q3q6tkyc0000gn/T//Katalon/Appium/Temp1551587426507 -p 51192 --chromedriver-port 51193 --log-level info --webkit-debug-proxy-port 0

In these cases, the 2nd column is the process id, e.g. 48742 and 60974. To kill those processes, you can use kill <processid> in the Terminal where <processid> is the id from the listing. If they don’t seem to close, you can be more forceful with kill -9 <processid>.

Try re-running your tests after the processes have been cleared up.

Verifying that the app runs on the simulator

To verify that the new .app file that you’re building actually works, you can drag and drop the app from your DerivedData directory onto the simulator. I would recommend doing Hardware->Erase All Contents and Settings first just to make sure the simulator is cleaned. Try launching the app from the simulator. If it’s built correctly, it should run.

Verifying WebDriverAgent builds

If clearing the appium processes doesn’t work, you can check that the WebDriverAgent project is building correctly. There are some very detailed instructions on how to build and verify WebDriverAgent:

Hope this helps,

Chris

1 Like

Thanks Chris! I think that did it. Appreciate your help!

1 Like

Dear Chris_Trevarthen, can you please add screenshot how to solve the issue, note that when i try to start a simulator i’m getting the below error
{“errno”:-61,“code”:“ECONNREFUSED”,“syscall”:“connect”,“address”:“127.0.0.1”,“port”:60287}

[35m[Appium]e[39m Welcome to Appium v1.16.0
e[35m[Appium]e[39m Non-default server args:
e[35m[Appium]e[39m port: 60273
e[35m[Appium]e[39m loglevel: info
e[35m[Appium]e[39m chromeDriverPort: 60274
e[35m[Appium]e[39m tmpDir: /var/folders/88/s72y3s8n28j6qmmx303ygt1c0000gn/T//Katalon/Appium/Temp1579250290237
e[35m[Appium]e[39m Appium REST http interface listener started on 0.0.0.0:60273
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<-- GET /wd/hub/status e[39me[32m200e[39m e[90m7 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[90m{}e[39m
e[35m[HTTP]e[39m e[37m<-- GET /wd/hub/status e[39me[32m200e[39m e[90m2 ms - 68e[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[90m{“desiredCapabilities”:{“app”:"/Users/apple/Downloads/CreditBankApp 2020-01-03 17-09-07/CreditBankApp.ipa",“noReset”:true,“deviceName”:“iPhone 8”,“fullReset”:false,“wdaLocalPort”:60287,“newCommandTimeout”:1800,“realDeviceLogger”:"/Applications/Katalon Studio.app/Contents/Eclipse/configuration/resources/tools/deviceconsole",“platformVersion”:“13.2”,“automationName”:“XCUITest”,“waitForAppScript”:“true;”,“platformName”:“iOS”,“udid”:“8A1F99AA-2F5B-4263-B9D8-68C2216247D5”},“capabilities”:{“firstMatch”:[{“appium:app”:"/Users/apple/Downloads/CreditBankApp 2020-01-03 17-09-07/CreditBankApp.ipa",“appium:automationName”:“XCUITest”,“appium:deviceName”:“iPhone 8”,“appium:fullReset”:false,“appium:newCommandTimeout”:1800,“appium:noReset”:true,“platformName”:“ios”,“appium:platformVersion”:“13.2”,“realDeviceLogger”:"/Applications/Katalon Studio.app/Contents/Eclipse/configuration/resources/tools/deviceconsole",“appium:udid”:“8A1F99AA-2F5B-4263-B9D8-68C2216247D5”,“appium:waitForAppScript”:“true;”,"appiue[39m
e[35m[BaseDriver]e[39m The capabilities [“realDeviceLogger”] are not standard capabilities and should have an extension prefix
e[35m[Appium]e[39m Appium v1.16.0 creating new XCUITestDriver (v3.10.1) session
e[35m[BaseDriver]e[39m Session created with session id: bfe643c1-be8f-4750-b438-ba94dc3da1cd
e[35m[iOSSim]e[39m Constructing iOS simulator for Xcode version 11.3.1 with udid ‘8A1F99AA-2F5B-4263-B9D8-68C2216247D5’
e[35m[XCUITest]e[39m Determining device to run tests on: udid: ‘8A1F99AA-2F5B-4263-B9D8-68C2216247D5’, real device: false
e[35m[BaseDriver]e[39m Using local app ‘/Users/apple/Downloads/CreditBankApp 2020-01-03 17-09-07/CreditBankApp.ipa’
e[35m[BaseDriver]e[39m Unzipped local app to ‘/var/folders/88/s72y3s8n28j6qmmx303ygt1c0000gn/T/Katalon/Appium/Temp1579250290237/2020017-41588-17b1bcd.xbgz/Payload/Creditbank.app’
e[35m[XCUITest]e[39m Continuing without capturing device logs: iOS Simulator with udid 8A1F99AA-2F5B-4263-B9D8-68C2216247D5 is not running
e[35m[XCUITest]e[39m Setting up simulator
e[35m[iOSSim]e[39m Booting Simulator with UDID 8A1F99AA-2F5B-4263-B9D8-68C2216247D5…
e[35m[iOSSim]e[39m Starting Simulator UI with command: open -Fn /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app --args -CurrentDeviceUDID 8A1F99AA-2F5B-4263-B9D8-68C2216247D5 -ConnectHardwareKeyboard 0
e[35m[iOSSim]e[39m Simulator with UDID 8A1F99AA-2F5B-4263-B9D8-68C2216247D5 booted in 11 seconds
e[35m[XCUITest]e[39m *********************************
e[35m[XCUITest]e[39m Simulator architecture appears to be unsupported by the ‘/var/folders/88/s72y3s8n28j6qmmx303ygt1c0000gn/T/Katalon/Appium/Temp1579250290237/2020017-41588-17b1bcd.xbgz/Payload/Creditbank.app’ application. Make sure the correct deployment target has been selected for its compilation in Xcode.
e[35m[XCUITest]e[39m Don’t be surprised if the application fails to launch.
e[35m[XCUITest]e[39m *********************************
e[35m[XCUITest]e[39m Using WDA path: ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent’
e[35m[XCUITest]e[39m Using WDA agent: ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj’
e[35m[DevCon Factory]e[39m Requesting connection for device 8A1F99AA-2F5B-4263-B9D8-68C2216247D5 on local port 60287, device port 60287
e[35m[DevCon Factory]e[39m Successfully requested the connection for 8A1F99AA-2F5B-4263-B9D8-68C2216247D5:60287
e[35m[WD Proxy]e[39m Got an unexpected response with status undefined: {“errno”:-61,“code”:“ECONNREFUSED”,“syscall”:“connect”,“address”:“127.0.0.1”,“port”:60287}
e[35m[XCUITest]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 Got an unexpected response with status undefined: {“errno”:-61,“code”:“ECONNREFUSED”,“syscall”:“connect”,“address”:“127.0.0.1”,“port”:60287}

Hi @mariana.kolko,

It looks like you’re using Appium 1.16.0. I’ve been able to successfully use Katalon Studio 7 with Appium 1.15.1. As a first step, could you try downgrading to Appium v1.15.1?

If you installed it using npm, you can downgrade by running on your command line:

npm install -g appium@1.15.1

Hope this helps,

Chris

hi @chris_Trevarthen

yes you are right i’m using Appium 1.16.0, I have downloaded through npm install -g appium, I will downgraded to 1.15.1, and try a again. I will let you know if the issue was solved

thank you

@Chris_Trevarthen . seems that the issue wasn’t solved, i’m getting the below error

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 start WebDriverAgent session because of xcodebuild failure: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: connect ECONNREFUSED 127.0.0.1:51325

Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’

System info: host: ‘Apples-iMac.local’, ip: ‘fe80:0:0:0:8f3:3af9:4ea9:7194%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.15.2’, java.version: ‘1.8.0_181’

Driver info: driver.version: IOSDriver

remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Unable to start WebDriverAgent session because of xcodebuild failure: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: connect ECONNREFUSED 127.0.0.1:51325

at getResponseForW3CError (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:804:9)

at asyncHandler (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:388:37)

Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’

System info: host: ‘Apples-iMac.local’, ip: ‘fe80:0:0:0:8f3:3af9:4ea9:7194%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.15.2’, java.version: ‘1.8.0_181’

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.MobileLocalAppComposite$12.run(MobileLocalAppComposite.java:474)

at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)

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 start WebDriverAgent session because of xcodebuild failure: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: connect ECONNREFUSED 127.0.0.1:51325

Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’

System info: host: ‘Apples-iMac.local’, ip: ‘fe80:0:0:0:8f3:3af9:4ea9:7194%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.15.2’, java.version: ‘1.8.0_181’

Driver info: driver.version: IOSDriver

remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Unable to start WebDriverAgent session because of xcodebuild failure: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: connect ECONNREFUSED 127.0.0.1:51325

at getResponseForW3CError (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:804:9)

at asyncHandler (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:388:37)

Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’

System info: host: ‘Apples-iMac.local’, ip: ‘fe80:0:0:0:8f3:3af9:4ea9:7194%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.15.2’, java.version: ‘1.8.0_181’

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:495)

at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:479)

at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startLocalMobileDriver(MobileDriverFactory.java:458)

at com.kms.katalon.composer.mobile.objectspy.dialog.MobileInspectorController.startMobileApp(MobileInspectorController.java:191)

at com.kms.katalon.composer.mobile.objectspy.components.MobileLocalAppComposite$12$1.call(MobileLocalAppComposite.java:479)

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)

… 20 more

Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Unable to start WebDriverAgent session because of xcodebuild failure: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: connect ECONNREFUSED 127.0.0.1:51325

Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’

System info: host: ‘Apples-iMac.local’, ip: ‘fe80:0:0:0:8f3:3af9:4ea9:7194%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.15.2’, java.version: ‘1.8.0_181’

Driver info: driver.version: IOSDriver

remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Unable to start WebDriverAgent session because of xcodebuild failure: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: connect ECONNREFUSED 127.0.0.1:51325

at getResponseForW3CError (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:804:9)

at asyncHandler (/usr/local/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:388:37)

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)

… 21 more

@Chris_Trevarthen note that on Xcode i’m getting a lot of the below warning
/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgentLib/Categories/XCUIElement+FBWebDriverAttributes.m:109:15: Messaging unqualified id

@Chris_Trevarthen one more question, does the same ipa file works on simulator? or is there anything speacial that needs to be done on for the app? sorry for the whole questions, but it is a matter of urgency, and i keep getting errors

note that i’m using Catalina and the latest Xcode

Hi @mariana.kolko,

In order to use Katalon Studio with iOS, you’ll need to install an configure the Appium WebDriverAgent project if you haven’t already. The instructions for setting that up can be found here:

If you’ve done this and are still getting an error, please let me know.

As for the same .ipa working on an simulator and an actual device, it’s been my experience that doesn’t work. .ipa files are built and signed for physical device hardware and aren’t bundled to be run on a simulator. You can, however, install a .app file on a simulator or device and it should work.

Hope this helps,

Chris

@Chris_Trevarthen , the Appium version was the issue, Appium 1.15.1 worked well on the IOS real device, my problem yesterday was because I tried to use the .ipa file on Simulator, I will let try your advice concerning the .app and will let you know. thanks a lot concerning the Appium 1.15.1 version it really helped me

1 Like

Hi @Chris_Trevarthen

I used a for production file on Katalon and it worked. Now i used a staging file and it shows me this error. Can you help me with this one?

java.util.concurrent.ExecutionException: org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Original error: unexpected end of stream on Connection{127.0.0.1:51252, proxy=DIRECT hostAddress=/127.0.0.1:51252 cipherSuite=none protocol=http/1.1}
Build info: version: ‘unknown’, revision: ‘unknown’, time: ‘unknown’
System info: host: ‘appetisers-mini’, ip: ‘192.168.254.110’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.14.5’, java.version: ‘1.8.0_181’
Driver info: driver.version: IOSDriver

I’m using Mojave 10.14.5, latest Katalon and Xcode.

Thank you in advance for your response.

Francis

Hi @francis.gamad,

When you say the latest version of Xcode, can you please confirm the version for me? I don’t think the latest Xcode works with Mac OS 10.14.5. Can you also share the version of Appium that you’re using (version 1.15.1 is recommended)?

– Chris