Unable to start application real ios device

Hi all,
I’ve been searching for two days straight and I’m tired of blindly trying, reinstalling and following at least 25% similar errors, but nothing helping and no other guid pointing right direction.

Please help.
I got builded WDA on my real device. I got Integration App running too. But when i try run app by katalon it ended with this error. Is there anyone who can point me in right direction please?
Thanks a lot.
Best regards,
John.

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: Could not load a driver for automationName ‘XCUITest’ and platformName ‘ios’. Please verify your Appium installation

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

System info: host: ‘censured data’, ip: ‘censured data’, 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: Could not load a driver for automationName ‘XCUITest’ and platformName ‘ios’. Please verify your Appium installation

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:380:37)

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

System info: host: ‘censured data’, ip: ‘censured data’, 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.MobileLocalAppComposite$12.run(MobileLocalAppComposite.java:488)

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: Could not load a driver for automationName ‘XCUITest’ and platformName ‘ios’. Please verify your Appium installation

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

System info: host: ‘censured data’, ip: ‘censured data’, 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: Could not load a driver for automationName ‘XCUITest’ and platformName ‘ios’. Please verify your Appium installation

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:380:37)

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

System info: host: ‘censured data’, ip: ‘censured data’, 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:501)

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

at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startMobileDriver(MobileDriverFactory.java:417)

at com.kms.katalon.composer.mobile.objectspy.dialog.MobileInspectorController.startExistingApp(MobileInspectorController.java:143)

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

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: Could not load a driver for automationName ‘XCUITest’ and platformName ‘ios’. Please verify your Appium installation

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

System info: host: ‘censured data’, ip: ‘censured data’, 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: Could not load a driver for automationName ‘XCUITest’ and platformName ‘ios’. Please verify your Appium installation

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:380: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

It seems like there is an issue with the appium XCUITest driver. What version of appium are you using and are you able to start the appium server manually inside your terminal? You may need to try to reinstall appium.

Hi,
My appium version is 1.22.3.
And Yes i can start appium in terminal as well as desktop app. I can connect to it by appium inspector as well but when i try to conect to it by katalon it always fail with this error.

And unfortunetly reinstaling not helping. Done that multiple times and still nothing work. Ending with same error here.

Can you send a list of your desired capabilities?

of appium inspector?

Both Katalon Studio iOS capabilities and the ones that work inside appium inspector.

inspector capabilities:
{
“appium:app”: “/Users/jankudrna/Library/Developer/Xcode/DerivedData/UIKitCatalog-bimxgkgdbabtmedvonmsqwwbuzxv/Build/Products/Debug-iphonesimulator/UIKitCatalog.app”,
“appium:automationName”: “XCUITest”,
“appium:deviceName”: “iPhone 14 Pro Max”,
“appium:platformVersion”: “16.0”,
“platformName”: “IOS”
}

but for katalon i don’t know where to find them. I was following katalon guide and there is nothing said about katalon capabilities. That can be the problem. Where can i find it?

Ye i found it. I got non for katalon. When i try to fill what i got for inspector nothing happened. Even non erorr but spy and record still not working.

Do you get the same error after adding in the iOS desired capabilities in Katalon? Also when you try to execute the test are you making sure to play the iOS tests? You can make sure you select iOS by using the dropdown on the play button inside and select iOS execution. Here is a link for mobile desired capabilities Set up Desired Capabilities in Mobile Testing in Katalon Studio | Katalon Docs

Im onto something. Let me get back to you with result later.

Thanks a lot for helping me with this issue.

Unfortunetly no luck here. Same error even if i put in Katalon capabilities. Yes I’m executing iOS testing.

Ok i moved to another issue. When i fill capabilities as followed:
{"IOS_DRIVER":{"app":"/Users/jankudrna/Library/Developer/Xcode/DerivedData/UIKitCatalog-bimxgkgdbabtmedvonmsqwwbuzxv/Build/Products/Debug-iphonesimulator/UIKitCatalog.app","platformVersion":"16.0","automationName":"XCUITest","platformName":"IOS","deviceName":"iPhone 14 Pro Max","deviceId":"DEAE6E5B-F460-4681-9735-506C112CEDEB"}}

and put manual proxy in as HTTP / Adress: 127.0.0.1 / Port 4723
Katalon start comunicating with appium. But now it failed on:

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:

Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'M1MaxMBP1TB32GB.docsis.vodafone.cz', ip: 'fe80:0:0:0:c86:9b38:458b:fff8%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:

    at getResponseForW3CError (/opt/homebrew/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:804:9)
    at asyncHandler (/opt/homebrew/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:380:37)
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'M1MaxMBP1TB32GB.docsis.vodafone.cz', ip: 'fe80:0:0:0:c86:9b38:458b:fff8%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.MobileLocalAppComposite$12.run(MobileLocalAppComposite.java:488)
	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:

Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'M1MaxMBP1TB32GB.docsis.vodafone.cz', ip: 'fe80:0:0:0:c86:9b38:458b:fff8%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:

    at getResponseForW3CError (/opt/homebrew/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:804:9)
    at asyncHandler (/opt/homebrew/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:380:37)
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'M1MaxMBP1TB32GB.docsis.vodafone.cz', ip: 'fe80:0:0:0:c86:9b38:458b:fff8%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.<init>(RemoteWebDriver.java:131)
	at io.appium.java_client.DefaultGenericMobileDriver.<init>(DefaultGenericMobileDriver.java:38)
	at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:84)
	at io.appium.java_client.ios.IOSDriver.<init>(IOSDriver.java:85)
	at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:501)
	at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:485)
	at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startLocalMobileDriver(MobileDriverFactory.java:539)
	at com.kms.katalon.composer.mobile.objectspy.dialog.MobileInspectorController.startMobileApp(MobileInspectorController.java:196)
	at com.kms.katalon.composer.mobile.objectspy.components.MobileLocalAppComposite.startLocalAppAsNormal(MobileLocalAppComposite.java:561)
	at com.kms.katalon.composer.mobile.objectspy.components.MobileLocalAppComposite$12$1.call(MobileLocalAppComposite.java:496)
	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)
	... 21 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:

Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'M1MaxMBP1TB32GB.docsis.vodafone.cz', ip: 'fe80:0:0:0:c86:9b38:458b:fff8%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:

    at getResponseForW3CError (/opt/homebrew/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:804:9)
    at asyncHandler (/opt/homebrew/lib/node_modules/appium/node_modules/appium-base-driver/lib/protocol/protocol.js:380: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)
	... 22 more

adding server log from appium:

Last login: Tue Oct 25 16:31:08 on ttys001
jankudrna@M1MaxMBP1TB32GB ~ % appium
[Appium] Welcome to Appium v1.22.3
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST http://127.0.0.1:50132/wd/hub/session
[HTTP] {"desiredCapabilities":{"app":"/Users/jankudrna/Library/Developer/Xcode/DerivedData/UIKitCatalog-bimxgkgdbabtmedvonmsqwwbuzxv/Build/Products/Debug-iphonesimulator/UIKitCatalog.app","noReset":true,"deviceId":"DEAE6E5B-F460-4681-9735-506C112CEDEB","deviceName":"iPhone 14 Pro Max","fullReset":false,"wdaLocalPort":50141,"newCommandTimeout":1800,"realDeviceLogger":"/Applications/Katalon Studio.app/Contents/Eclipse/configuration/resources/tools/deviceconsole","platformVersion":"16.0","automationName":"XCUITest","waitForAppScript":"true;","platformName":"iOS","udid":"DEAE6E5B-F460-4681-9735-506C112CEDEB"},"capabilities":{"firstMatch":[{"appium:app":"/Users/jankudrna/Library/Developer/Xcode/DerivedData/UIKitCatalog-bimxgkgdbabtmedvonmsqwwbuzxv/Build/Products/Debug-iphonesimulator/UIKitCatalog.app","appium:automationName":"XCUITest","deviceId":"DEAE6E5B-F460-4681-9735-506C112CEDEB","appium:deviceName":"iPhone 14 Pro Max","appium:fullReset":false,"appium:newCommandTimeout":1800,"appium:noReset":true,"platformName":"...
[debug] [W3C] Calling AppiumDriver.createSession() with args: [{"app":"/Users/jankudrna/Library/Developer/Xcode/DerivedData/UIKitCatalog-bimxgkgdbabtmedvonmsqwwbuzxv/Build/Products/Debug-iphonesimulator/UIKitCatalog.app","noReset":true,"deviceId":"DEAE6E5B-F460-4681-9735-506C112CEDEB","deviceName":"iPhone 14 Pro Max","fullReset":false,"wdaLocalPort":50141,"newCommandTimeout":1800,"realDeviceLogger":"/Applications/Katalon Studio.app/Contents/Eclipse/configuration/resources/tools/deviceconsole","platformVersion":"16.0","automationName":"XCUITest","waitForAppScript":"true;","platformName":"iOS","udid":"DEAE6E5B-F460-4681-9735-506C112CEDEB"},null,{"firstMatch":[{"appium:app":"/Users/jankudrna/Library/Developer/Xcode/DerivedData/UIKitCatalog-bimxgkgdbabtmedvonmsqwwbuzxv/Build/Products/Debug-iphonesimulator/UIKitCatalog.app","appium:automationName":"XCUITest","deviceId":"DEAE6E5B-F460-4681-9735-506C112CEDEB","appium:deviceName":"iPhone 14 Pro Max","appium:fullReset":false,"appium:newCommandTimeout":1800,"appium:noReset":true,"platformName":"ios","appium:platformVersion":"1...
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1666708823618 (16:40:23 GMT+0200 (Central European Summer Time))
[BaseDriver] The following capabilities are not standard capabilities and should have an extension prefix:
[BaseDriver]   deviceId
[BaseDriver]   realDeviceLogger
[Appium] Appium v1.22.3 creating new XCUITestDriver (v3.59.0) session
[debug] [BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided
[debug] [BaseDriver] Creating session with W3C capabilities: {
[debug] [BaseDriver]   "alwaysMatch": {
[debug] [BaseDriver]     "appium:deviceId": "DEAE6E5B-F460-4681-9735-506C112CEDEB",
[debug] [BaseDriver]     "platformName": "ios",
[debug] [BaseDriver]     "appium:realDeviceLogger": "/Applications/Katalon Studio.app/Contents/Eclipse/configuration/resources/tools/deviceconsole",
[debug] [BaseDriver]     "appium:app": "/Users/jankudrna/Library/Developer/Xcode/DerivedData/UIKitCatalog-bimxgkgdbabtmedvonmsqwwbuzxv/Build/Products/Debug-iphonesimulator/UIKitCatalog.app",
[debug] [BaseDriver]     "appium:automationName": "XCUITest",
[debug] [BaseDriver]     "appium:deviceName": "iPhone 14 Pro Max",
[debug] [BaseDriver]     "appium:fullReset": false,
[debug] [BaseDriver]     "appium:newCommandTimeout": 1800,
[debug] [BaseDriver]     "appium:noReset": true,
[debug] [BaseDriver]     "appium:platformVersion": "16.0",
[debug] [BaseDriver]     "appium:udid": "DEAE6E5B-F460-4681-9735-506C112CEDEB",
[debug] [BaseDriver]     "appium:waitForAppScript": "true;",
[debug] [BaseDriver]     "appium:wdaLocalPort": 50141
[debug] [BaseDriver]   },
[debug] [BaseDriver]   "firstMatch": [
[debug] [BaseDriver]     {}
[debug] [BaseDriver]   ]
[debug] [BaseDriver] }
[BaseDriver] The following capabilities were provided, but are not recognized by Appium:
[BaseDriver]   deviceId
[BaseDriver]   realDeviceLogger
[BaseDriver]   waitForAppScript
[BaseDriver] Session created with session id: b2d66314-7867-4524-affe-7b24a0916209
[debug] [XCUITest] Current user: 'jankudrna'
[debug] [XCUITest] Available devices: 
[debug] [XCUITest] No real device with udid 'DEAE6E5B-F460-4681-9735-506C112CEDEB'. Looking for simulator
[iOSSim] Constructing iOS simulator for Xcode version 14.0.1 with udid 'DEAE6E5B-F460-4681-9735-506C112CEDEB'
[XCUITest] Determining device to run tests on: udid: 'DEAE6E5B-F460-4681-9735-506C112CEDEB', real device: false
[debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1666708823845 (16:40:23 GMT+0200 (Central European Summer Time))
[BaseDriver] Using local app '/Users/jankudrna/Library/Developer/Xcode/DerivedData/UIKitCatalog-bimxgkgdbabtmedvonmsqwwbuzxv/Build/Products/Debug-iphonesimulator/UIKitCatalog.app'
[debug] [BaseDriver] Event 'appConfigured' logged at 1666708823846 (16:40:23 GMT+0200 (Central European Summer Time))
[debug] [XCUITest] Checking whether app '/Users/jankudrna/Library/Developer/Xcode/DerivedData/UIKitCatalog-bimxgkgdbabtmedvonmsqwwbuzxv/Build/Products/Debug-iphonesimulator/UIKitCatalog.app' is actually present on file system
[debug] [XCUITest] App is present
[debug] [XCUITest] Getting bundle ID from app '/Users/jankudrna/Library/Developer/Xcode/DerivedData/UIKitCatalog-bimxgkgdbabtmedvonmsqwwbuzxv/Build/Products/Debug-iphonesimulator/UIKitCatalog.app': 'com.example.apple-samplecode.UICatalog'
[debug] [BaseDriver] Event 'resetStarted' logged at 1666708823847 (16:40:23 GMT+0200 (Central European Summer Time))
[debug] [XCUITest] Reset: noReset is on. Leaving simulator as is
[debug] [BaseDriver] Event 'resetComplete' logged at 1666708823847 (16:40:23 GMT+0200 (Central European Summer Time))
[WebDriverAgent] Using WDA path: '/opt/homebrew/lib/node_modules/appium/node_modules/appium-webdriveragent'
[WebDriverAgent] Using WDA agent: '/opt/homebrew/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj'
[debug] [IOSSimulatorLog] Starting log capture for iOS Simulator with udid 'DEAE6E5B-F460-4681-9735-506C112CEDEB' using simctl
[debug] [BaseDriver] Event 'logCaptureStarted' logged at 1666708824062 (16:40:24 GMT+0200 (Central European Summer Time))
[XCUITest] Setting up simulator
[debug] [XCUITest] No reason to set locale
[debug] [XCUITest] No iOS / app preferences to set
[debug] [XCUITest] Setting did not need to be updated
[debug] [iOSSim] Setting preferences of DEAE6E5B-F460-4681-9735-506C112CEDEB Simulator to {"ConnectHardwareKeyboard":false}
[debug] [iOSSim] Setting common Simulator preferences to {"RotateWindowWhenSignaledByGuest":true,"ConnectHardwareKeyboard":false,"PasteboardAutomaticSync":false}
[debug] [iOSSim] Updated DEAE6E5B-F460-4681-9735-506C112CEDEB Simulator preferences at '/Users/jankudrna/Library/Preferences/com.apple.iphonesimulator.plist' with {"RotateWindowWhenSignaledByGuest":true,"ConnectHardwareKeyboard":false,"PasteboardAutomaticSync":false,"DevicePreferences":{"DEAE6E5B-F460-4681-9735-506C112CEDEB":{"ConnectHardwareKeyboard":false,"SimulatorExternalDisplay":2114,"SimulatorWindowGeometry":{"BC3DDC50-8EAE-45A2-9876-FA5E389CF825":{"WindowCenter":"{1271.5, 464}","WindowScale":0.8868312757201646}},"SimulatorWindowOrientation":"Portrait","SimulatorWindowRotationAngle":0,"ChromeTint":""}}}
[debug] [iOSSim] Got Simulator UI client PID: 1493
[iOSSim] Both Simulator with UDID 'DEAE6E5B-F460-4681-9735-506C112CEDEB' and the UI client are currently running
[debug] [BaseDriver] Event 'simStarted' logged at 1666708824317 (16:40:24 GMT+0200 (Central European Summer Time))
[debug] [XCUITest] Verifying application platform
[debug] [XCUITest] CFBundleSupportedPlatforms: ["iPhoneSimulator"]
[debug] [XCUITest] App 'com.example.apple-samplecode.UICatalog' is already installed. No need to reinstall.
[debug] [BaseDriver] Event 'appInstalled' logged at 1666708824404 (16:40:24 GMT+0200 (Central European Summer Time))
[debug] [WebDriverAgent] No obsolete cached processes from previous WDA sessions listening on port 50141 have been found
[DevCon Factory] Requesting connection for device DEAE6E5B-F460-4681-9735-506C112CEDEB on local port 50141
[debug] [DevCon Factory] Cached connections count: 0
[DevCon Factory] Successfully requested the connection for DEAE6E5B-F460-4681-9735-506C112CEDEB:50141
[debug] [XCUITest] Starting WebDriverAgent initialization with the synchronization key 'XCUITestDriver'
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:50141/status] with no body
[WD Proxy] connect ECONNREFUSED 127.0.0.1:50141
[debug] [WebDriverAgent] WDA is not listening at 'http://127.0.0.1:50141/'
[debug] [WebDriverAgent] WDA is currently not running. There is nothing to cache
[debug] [XCUITest] Trying to start WebDriverAgent 2 times with 10000ms interval
[debug] [XCUITest] These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities
[debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1666708824466 (16:40:24 GMT+0200 (Central European Summer Time))
[WebDriverAgent] Launching WebDriverAgent on the device
[WebDriverAgent] WebDriverAgent does not need a cleanup. The sources are up to date (1666624224326 >= 1666624224326)
[debug] [WebDriverAgent] Killing running processes 'xcodebuild.*DEAE6E5B-F460-4681-9735-506C112CEDEB, DEAE6E5B-F460-4681-9735-506C112CEDEB.*XCTRunner, xctest.*DEAE6E5B-F460-4681-9735-506C112CEDEB' for the device DEAE6E5B-F460-4681-9735-506C112CEDEB...
[debug] [WebDriverAgent] 'pgrep -if DEAE6E5B-F460-4681-9735-506C112CEDEB.*XCTRunner' didn't detect any matching processes. Return code: 1
[debug] [WebDriverAgent] 'pgrep -if xctest.*DEAE6E5B-F460-4681-9735-506C112CEDEB' didn't detect any matching processes. Return code: 1
[debug] [WebDriverAgent] 'pgrep -if xcodebuild.*DEAE6E5B-F460-4681-9735-506C112CEDEB' didn't detect any matching processes. Return code: 1
[debug] [WebDriverAgent] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /opt/homebrew/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=DEAE6E5B-F460-4681-9735-506C112CEDEB IPHONEOS_DEPLOYMENT_TARGET=16.0 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO' in directory '/opt/homebrew/lib/node_modules/appium/node_modules/appium-webdriveragent'
[debug] [WebDriverAgent] Output from xcodebuild will only be logged if any errors are present there. To change this, use 'showXcodeLog' desired capability
[debug] [WebDriverAgent] Parsed BUILD_DIR configuration value: '/Users/jankudrna/Library/Developer/Xcode/DerivedData/WebDriverAgent-fxmsedpwfaalxlbcwefbceeuodem/Build/Products'
[debug] [WebDriverAgent] Got derived data root: '/Users/jankudrna/Library/Developer/Xcode/DerivedData/WebDriverAgent-fxmsedpwfaalxlbcwefbceeuodem'
[debug] [WebDriverAgent] Waiting up to 60000ms for WebDriverAgent to start
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:50141/status] with no body
[WD Proxy] connect ECONNREFUSED 127.0.0.1:50141
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:50141/status] with no body
[WD Proxy] connect ECONNREFUSED 127.0.0.1:50141
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:50141/status] with no body
[WD Proxy] connect ECONNREFUSED 127.0.0.1:50141
[WebDriverAgent] xcodebuild exited with code '65' and signal 'null'
[WebDriverAgent] Launching WebDriverAgent on the device
[WebDriverAgent] WebDriverAgent does not need a cleanup. The sources are up to date (1666624224326 >= 1666624224326)
[debug] [WebDriverAgent] Killing running processes 'xcodebuild.*DEAE6E5B-F460-4681-9735-506C112CEDEB, DEAE6E5B-F460-4681-9735-506C112CEDEB.*XCTRunner, xctest.*DEAE6E5B-F460-4681-9735-506C112CEDEB' for the device DEAE6E5B-F460-4681-9735-506C112CEDEB...
[debug] [WebDriverAgent] 'pgrep -if xctest.*DEAE6E5B-F460-4681-9735-506C112CEDEB' didn't detect any matching processes. Return code: 1
[debug] [WebDriverAgent] 'pgrep -if DEAE6E5B-F460-4681-9735-506C112CEDEB.*XCTRunner' didn't detect any matching processes. Return code: 1
[debug] [WebDriverAgent] 'pgrep -if xcodebuild.*DEAE6E5B-F460-4681-9735-506C112CEDEB' didn't detect any matching processes. Return code: 1
[debug] [WebDriverAgent] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /opt/homebrew/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/jankudrna/Library/Developer/Xcode/DerivedData/WebDriverAgent-fxmsedpwfaalxlbcwefbceeuodem -destination id=DEAE6E5B-F460-4681-9735-506C112CEDEB IPHONEOS_DEPLOYMENT_TARGET=16.0 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO' in directory '/opt/homebrew/lib/node_modules/appium/node_modules/appium-webdriveragent'
[debug] [WebDriverAgent] Output from xcodebuild will only be logged if any errors are present there. To change this, use 'showXcodeLog' desired capability
[debug] [WebDriverAgent] Waiting up to 60000ms for WebDriverAgent to start
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:50141/status] with no body
[WD Proxy] connect ECONNREFUSED 127.0.0.1:50141
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:50141/status] with no body
[WD Proxy] connect ECONNREFUSED 127.0.0.1:50141
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:50141/status] with no body
[WD Proxy] connect ECONNREFUSED 127.0.0.1:50141
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:50141/status] with no body
[WD Proxy] connect ECONNREFUSED 127.0.0.1:50141
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:50141/status] with no body
[WD Proxy] connect ECONNREFUSED 127.0.0.1:50141
[WebDriverAgent] xcodebuild exited with code '65' and signal 'null'
[debug] [BaseDriver] Event 'wdaStartFailed' logged at 1666708829749 (16:40:29 GMT+0200 (Central European Summer Time))
[debug] [XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
[debug] [XCUITest] xcodebuild error message:
[debug] [XCUITest] 
[XCUITest] Quitting and uninstalling WebDriverAgent
[WebDriverAgent] Shutting down sub-processes
[debug] [iOSSim] Building bundle path map
[debug] [iOSSim] The simulator has '0' bundles which have 'WebDriverAgentRunner-Runner' as their 'CFBundleName':
[debug] [WebDriverAgent] No WDAs on the device.
[debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1666708839823 (16:40:39 GMT+0200 (Central European Summer Time))
[XCUITest] Retrying WDA startup (2 of 2)
[WebDriverAgent] Launching WebDriverAgent on the device
[WebDriverAgent] WebDriverAgent does not need a cleanup. The sources are up to date (1666624224326 >= 1666624224326)
[debug] [WebDriverAgent] Killing running processes 'xcodebuild.*DEAE6E5B-F460-4681-9735-506C112CEDEB, DEAE6E5B-F460-4681-9735-506C112CEDEB.*XCTRunner, xctest.*DEAE6E5B-F460-4681-9735-506C112CEDEB' for the device DEAE6E5B-F460-4681-9735-506C112CEDEB...
[debug] [WebDriverAgent] 'pgrep -if xctest.*DEAE6E5B-F460-4681-9735-506C112CEDEB' didn't detect any matching processes. Return code: 1
[debug] [WebDriverAgent] 'pgrep -if xcodebuild.*DEAE6E5B-F460-4681-9735-506C112CEDEB' didn't detect any matching processes. Return code: 1
[debug] [WebDriverAgent] 'pgrep -if DEAE6E5B-F460-4681-9735-506C112CEDEB.*XCTRunner' didn't detect any matching processes. Return code: 1
[debug] [WebDriverAgent] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /opt/homebrew/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/jankudrna/Library/Developer/Xcode/DerivedData/WebDriverAgent-fxmsedpwfaalxlbcwefbceeuodem -destination id=DEAE6E5B-F460-4681-9735-506C112CEDEB IPHONEOS_DEPLOYMENT_TARGET=16.0 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO' in directory '/opt/homebrew/lib/node_modules/appium/node_modules/appium-webdriveragent'
[debug] [WebDriverAgent] Output from xcodebuild will only be logged if any errors are present there. To change this, use 'showXcodeLog' desired capability
[debug] [WebDriverAgent] Waiting up to 60000ms for WebDriverAgent to start
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:50141/status] with no body
[WD Proxy] connect ECONNREFUSED 127.0.0.1:50141
[WebDriverAgent] xcodebuild exited with code '65' and signal 'null'
[WebDriverAgent] Launching WebDriverAgent on the device
[WebDriverAgent] WebDriverAgent does not need a cleanup. The sources are up to date (1666624224326 >= 1666624224326)
[debug] [WebDriverAgent] Killing running processes 'xcodebuild.*DEAE6E5B-F460-4681-9735-506C112CEDEB, DEAE6E5B-F460-4681-9735-506C112CEDEB.*XCTRunner, xctest.*DEAE6E5B-F460-4681-9735-506C112CEDEB' for the device DEAE6E5B-F460-4681-9735-506C112CEDEB...
[debug] [WebDriverAgent] 'pgrep -if xcodebuild.*DEAE6E5B-F460-4681-9735-506C112CEDEB' didn't detect any matching processes. Return code: 1
[debug] [WebDriverAgent] 'pgrep -if xctest.*DEAE6E5B-F460-4681-9735-506C112CEDEB' didn't detect any matching processes. Return code: 1
[debug] [WebDriverAgent] 'pgrep -if DEAE6E5B-F460-4681-9735-506C112CEDEB.*XCTRunner' didn't detect any matching processes. Return code: 1
[debug] [WebDriverAgent] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /opt/homebrew/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/jankudrna/Library/Developer/Xcode/DerivedData/WebDriverAgent-fxmsedpwfaalxlbcwefbceeuodem -destination id=DEAE6E5B-F460-4681-9735-506C112CEDEB IPHONEOS_DEPLOYMENT_TARGET=16.0 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO' in directory '/opt/homebrew/lib/node_modules/appium/node_modules/appium-webdriveragent'
[debug] [WebDriverAgent] Output from xcodebuild will only be logged if any errors are present there. To change this, use 'showXcodeLog' desired capability
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:50141/status] with no body
[WD Proxy] connect ECONNREFUSED 127.0.0.1:50141
[debug] [WebDriverAgent] Waiting up to 60000ms for WebDriverAgent to start
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:50141/status] with no body
[WD Proxy] connect ECONNREFUSED 127.0.0.1:50141
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:50141/status] with no body
[WD Proxy] connect ECONNREFUSED 127.0.0.1:50141
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:50141/status] with no body
[WD Proxy] connect ECONNREFUSED 127.0.0.1:50141
[WebDriverAgent] xcodebuild exited with code '65' and signal 'null'
[debug] [BaseDriver] Event 'wdaStartFailed' logged at 1666708842451 (16:40:42 GMT+0200 (Central European Summer Time))
[debug] [XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
[debug] [XCUITest] xcodebuild error message:
[debug] [XCUITest] 
[XCUITest] Quitting and uninstalling WebDriverAgent
[WebDriverAgent] Shutting down sub-processes
[debug] [iOSSim] Building bundle path map
[debug] [iOSSim] The simulator has '0' bundles which have 'WebDriverAgentRunner-Runner' as their 'CFBundleName':
[debug] [WebDriverAgent] No WDAs on the device.
[XCUITest] {}
[DevCon Factory] Releasing connections for DEAE6E5B-F460-4681-9735-506C112CEDEB device on any port number
[DevCon Factory] Found cached connections to release: ["DEAE6E5B-F460-4681-9735-506C112CEDEB:50141"]
[debug] [DevCon Factory] Cached connections count: 0
[debug] [XCUITest] Not clearing log files. Use `clearSystemFiles` capability to turn on.
[debug] [IOSSimulatorLog] Stopping iOS log capture
[debug] [BaseDriver] Event 'newSessionStarted' logged at 1666708842460 (16:40:42 GMT+0200 (Central European Summer Time))
[debug] [W3C] Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure: xcodebuild failed with code 65
[debug] [W3C] xcodebuild error message:
[debug] [W3C] 
[debug] [W3C]     at quitAndUninstall (/opt/homebrew/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:585:15)
[debug] [W3C]     at /opt/homebrew/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:620:11
[debug] [W3C]     at wrapped (/opt/homebrew/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:60:13)
[debug] [W3C]     at retry (/opt/homebrew/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:43:13)
[debug] [W3C]     at retryInterval (/opt/homebrew/lib/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:70:10)
[debug] [W3C]     at /opt/homebrew/lib/node_modules/appium/node_modules/appium-xcuitest-driver/lib/driver.js:600:7
[HTTP] <-- POST http://127.0.0.1:50132/wd/hub/session 500 18871 ms - 747
[HTTP] 


That is the generic xcodebuild error that we get when trying to run on a real device. Make sure you have followed all the steps to setup the webdriveragentrunner app is properly. One thing to make sure of is that if you are using a personal apple development account that you have updated the bundle identifier for the three necessary targets. Also I want to check that you are on a version of xcode lower than xcode 14 because there is a change that breaks the webdriveragent project on appium version 1.22.3. Here is a link to appiums real iOS device setup document:

ye im xcode 14.0.1. what version should i get?
Thanks for a guide. I’m gona try follow it and get back with result.

Thank you very mutch for your time and help.

To get this up and running quickly I would suggest downgrading to xcode 13.4.1. Xcode 14 and later will only work with appium 2.0 which requires using remote execution instead of iOS device execution. Here is a thread on that:

yeeee broda!!! I’m in. :partying_face::partying_face::partying_face::partying_face: downgrade to 13.4.1 some dependencies and building issues resolving and I’m in.

Thank you very mutch sir. You were big help on my jurney. :+1::+1: