Unable to install Mac2 Driver

I am seeing a problem with my setup.

Use the appium driver install mac2 CLI command to add it to your server dist.

When I try to run the “appium driver install mac2” command I see “error: unrecognized arguments: driver install mac2”

I tried to install mac2 driver using npm: “npm i appium-mac2-driver”, it builds successfully but still I see the error
“Failed to create session. An unknown server-side error occurred while processing the command. Original error: An unknown server-side error occurred while processing the command. Original error: ‘GET /status’ cannot be proxied to Mac2 Driver server because its process is not running (probably crashed). Check the Appium log for more details”

Server logs:
[HTTP] Waiting until the server is closed
[HTTP] Received server close event
[Appium] Welcome to Appium v1.22.3
[Appium] Non-default server args:
[Appium] relaxedSecurityEnabled: true
[Appium] allowInsecure: {
[Appium] }
[Appium] denyInsecure: {
[Appium] }
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session
[HTTP] {“capabilities”:{“alwaysMatch”:{“platformName”:“Mac”,“appium:deviceName”:“Mac”,“appium:automationName”:“mac2”,“appium:newCommandTimeout”:3600,“appium:connectHardwareKeyboard”:true},“firstMatch”:[{}]},“desiredCapabilities”:{“platformName”:“Mac”,“appium:deviceName”:“Mac”,“appium:automationName”:“mac2”,“appium:newCommandTimeout”:3600,“appium:connectHardwareKeyboard”:true}}
[W3C] Calling AppiumDriver.createSession() with args: [{“platformName”:“Mac”,“appium:deviceName”:“Mac”,“appium:automationName”:“mac2”,“appium:newCommandTimeout”:3600,“appium:connectHardwareKeyboard”:true},null,{“alwaysMatch”:{“platformName”:“Mac”,“appium:deviceName”:“Mac”,“appium:automationName”:“mac2”,“appium:newCommandTimeout”:3600,“appium:connectHardwareKeyboard”:true},“firstMatch”:[{}]}]
[BaseDriver] Event ‘newSessionRequested’ logged at 1654684256361 (16:00:56 GMT+0530 (India Standard Time))
[Appium] Appium v1.22.3 creating new Mac2Driver (v0.14.1) session
[Appium] Applying relaxed security to ‘Mac2Driver’ as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure
[BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided
[BaseDriver] Creating session with W3C capabilities: {
[BaseDriver] “alwaysMatch”: {
[BaseDriver] “platformName”: “Mac”,
[BaseDriver] “appium:deviceName”: “Mac”,
[BaseDriver] “appium:automationName”: “mac2”,
[BaseDriver] “appium:newCommandTimeout”: 3600,
[BaseDriver] “appium:connectHardwareKeyboard”: true
[BaseDriver] },
[BaseDriver] “firstMatch”: [
[BaseDriver] {}
[BaseDriver] ]
[BaseDriver] }
[BaseDriver] The following capabilities were provided, but are not recognized by Appium:
[BaseDriver] connectHardwareKeyboard
[BaseDriver] Session created with session id: 8b89dc7d-e1f3-41c0-9d25-a6bd02b2089d
[WebDriverAgentMac] Using bootstrap root: /Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-mac2-driver/WebDriverAgentMac
[WebDriverAgentMac] Using xcodebuild binary at ‘/usr/bin/xcodebuild’
[WebDriverAgentMac] WebDriverAgent sources are up to date (1652561248000 >= 1652561248000)
[WebDriverAgentMac] Using 127.0.0.1 as server host
[WebDriverAgentMac] Using port 10100
[WebDriverAgentMac] Mac2Driver host process logging is disabled. All the xcodebuild output is going to be suppressed. Set the ‘showServerLogs’ capability to ‘true’ if this is an undesired behavior
[WebDriverAgentMac] Starting Mac2Driver host process: xcodebuild build-for-testing test-without-building -project ‘/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-mac2-driver/WebDriverAgentMac/WebDriverAgentMac.xcodeproj’ -scheme WebDriverAgentRunner COMPILER_INDEX_STORE_ENABLE=NO
[WD Proxy] Matched ‘/status’ to command name ‘getStatus’
[WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:10100/status] with no body
[WD Proxy] connect ECONNREFUSED 127.0.0.1:10100
[WebDriverAgentMac] Mac2Driver host process has exited with code 1, signal null
[WebDriverAgentMac] Mac2Driver session cannot be stopped, because the server is not running
[BaseDriver] Event ‘newSessionStarted’ logged at 1654684257465 (16:00:57 GMT+0530 (India Standard Time))
[W3C] Encountered internal error running command: Error: An unknown server-side error occurred while processing the command. Original error: ‘GET /status’ cannot be proxied to Mac2 Driver server because its process is not running (probably crashed). Check the Appium log for more details
[W3C] at WDAMacServer.isProxyReady (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-mac2-driver/lib/wda-mac.js:328:15)
[W3C] at waitMs (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-mac2-driver/lib/wda-mac.js:422:44)
[W3C] at spin (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:138:20)
[W3C] at spin (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:148:14)
[W3C] at waitForCondition (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:155:10)
[W3C] at WDAMacServer.startSession (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-mac2-driver/lib/wda-mac.js:422:9)
[W3C] at Mac2Driver.createSession (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-mac2-driver/lib/driver.js:86:7)
[W3C] at AppiumDriver.createSession (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/lib/appium.js:387:35)
[HTTP] <-- POST /wd/hub/session 500 1123 ms - 1045

Please help me with this.

@mykola-mokhnach Please help me with this

This command is not supposed to work with Appium1. You must upgrade to Appium2 first: https://appiumpro.com/editions/122-installing-appium-20-and-the-driver-and-plugins-cli

Hi @mykola-mokhnach thank you for your quick response, even after installing appium-2 and mac2 driver was installed successfully, I still see the below error.

Error
Failed to create session. An unknown server-side error occurred while processing the command. Original error: An unknown server-side error occurred while processing the command. Original error: ‘GET /status’ cannot be proxied to Mac2 Driver server because its process is not running (probably crashed). Check the Appium log for more details

Server log:

Calling AppiumDriver.createSession() with args: [{“platformName”:“Mac”,“appium:deviceName”:“Mac”,“appium:automationName”:“mac2”,“appium:newCommandTimeout”:3600,“appium:connectHardwareKeyboard”:true},null,{“alwaysMatch”:{“platformName”:“Mac”,“appium:deviceName”:“Mac”,“appium:automationName”:“mac2”,“appium:newCommandTimeout”:3600,“appium:connectHardwareKeyboard”:true},“firstMatch”:[{}]}]
[BaseDriver] Event ‘newSessionRequested’ logged at 1655101494828 (11:54:54 GMT+0530 (India Standard Time))
[Appium] Appium v1.22.3 creating new Mac2Driver (v0.14.1) session
[Appium] Applying relaxed security to ‘Mac2Driver’ as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure
[BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided
[BaseDriver] Creating session with W3C capabilities: {
[BaseDriver] “alwaysMatch”: {
[BaseDriver] “platformName”: “Mac”,
[BaseDriver] “appium:deviceName”: “Mac”,
[BaseDriver] “appium:automationName”: “mac2”,
[BaseDriver] “appium:newCommandTimeout”: 3600,
[BaseDriver] “appium:connectHardwareKeyboard”: true
[BaseDriver] },
[BaseDriver] “firstMatch”: [
[BaseDriver] {}
[BaseDriver] ]
[BaseDriver] }
[BaseDriver] The following capabilities were provided, but are not recognized by Appium:
[BaseDriver] connectHardwareKeyboard
[BaseDriver] Session created with session id: 39db8605-5de1-48ac-9744-e271d360dd7e
[WebDriverAgentMac] Using bootstrap root: /Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-mac2-driver/WebDriverAgentMac
[WebDriverAgentMac] Using xcodebuild binary at ‘/usr/bin/xcodebuild’
[WebDriverAgentMac] WebDriverAgent sources are up to date (1652561248000 >= 1652561248000)
[WebDriverAgentMac] Using 127.0.0.1 as server host
[WebDriverAgentMac] Using port 10100
[WebDriverAgentMac] Mac2Driver host process logging is disabled. All the xcodebuild output is going to be suppressed. Set the ‘showServerLogs’ capability to ‘true’ if this is an undesired behavior
[WebDriverAgentMac] Starting Mac2Driver host process: xcodebuild build-for-testing test-without-building -project ‘/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-mac2-driver/WebDriverAgentMac/WebDriverAgentMac.xcodeproj’ -scheme WebDriverAgentRunner COMPILER_INDEX_STORE_ENABLE=NO
[WD Proxy] Matched ‘/status’ to command name ‘getStatus’
[WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:10100/status] with no body
[WD Proxy] connect ECONNREFUSED 127.0.0.1:10100
[WebDriverAgentMac] Mac2Driver host process has exited with code 1, signal null
[WebDriverAgentMac] Mac2Driver session cannot be stopped, because the server is not running
[BaseDriver] Event ‘newSessionStarted’ logged at 1655101496159 (11:54:56 GMT+0530 (India Standard Time))
[W3C] Encountered internal error running command: Error: An unknown server-side error occurred while processing the command. Original error: ‘GET /status’ cannot be proxied to Mac2 Driver server because its process is not running (probably crashed). Check the Appium log for more details
[W3C] at WDAMacServer.isProxyReady (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-mac2-driver/lib/wda-mac.js:328:15)
[W3C] at waitMs (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-mac2-driver/lib/wda-mac.js:422:44)
[W3C] at spin (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:138:20)
[W3C] at spin (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:148:14)
[W3C] at waitForCondition (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/asyncbox/lib/asyncbox.js:155:10)
[W3C] at WDAMacServer.startSession (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-mac2-driver/lib/wda-mac.js:422:9)
[W3C] at Mac2Driver.createSession (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-mac2-driver/lib/driver.js:86:7)
[W3C] at AppiumDriver.createSession (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/lib/appium.js:387:35)
[HTTP] <-- POST /wd/hub/session 500 1367 ms - 1045

Not sure what’s going on here but enabling the server logs is always a good idea.

Not sure if Appium2 is running or it’s just wrong logs

@wreed, @mykola-mokhnach My bad I was running Appium-1.22.3 Server UI.

I started appium-2 server from terminal and still see the same error, I see something related to mac2 driver.
WARN Appium Driver “mac2” has 1 potential problem:
WARN Appium - Driver “mac2” (package appium-mac2-driver) may be incompatible with the current version of Appium (v2.0.0-beta.40) due to an invalid or missing peer dependency on Appium. Please ask the developer of appium-mac2-driver to add a peer dependency on ^[email protected].

Server logs:
text1.txt (511.0 KB)

@wreed @mykola-mokhnach Anything useful from the logs? I uninstalled everything and tried again, still facing the same problem.
Not sure what is wrong. Any help would be much appreciated.
Thank you.

In looking over the logs I’m not sure. I don’t run Mac2Driver though. Have you done all the requirements here:

@wreed Yes I have done all the steps.

[debug] [WebDriverAgentMac] WebDriverAgentRunner-Runner encountered an error (Failed to install or launch the test runner. If you believe this error represents a bug, please attach the result bundle at /Users/ User.admin/Library/Developer/Xcode/DerivedData/WebDriverAgentMac-gyhvrecudwhdbodwzrruwflkbpcy/Logs/Test/Test-WebDriverAgentRunner-2022.06.14_10-58-05-+0530.xcresult. (Underlying Error: Could not launch “WebDriverAgentRunner”. The LaunchServices launcher has returned an error. Please check the system logs for the underlying cause of the error. (Underlying Error: The operation couldn’t be completed. Launch failed. (Underlying Error: Launchd job spawn failed))))

This is the original XCTest error, which prevents the test from starting. Try to provide a valid app bundle identifier to capabilities.

@mykola-mokhnach
These are the capabilities, In the previous comment I removed the bundleId for security reasons.
{
“platformName”: “Mac”,
“appium:bundleId”: “com.philandro.anydesk”,
“appium:deviceName”: “Mac”,
“appium:automationName”: “Mac2”,
“appium:showServerLogs”: true
}

Logs:
WARN Appium Appium encountered 6 warnings while validating drivers found in manifest /Users/ User.admin/.appium/node_modules/.cache/appium/extensions.yaml
WARN Appium Driver “xcuitest” has 1 potential problem:
WARN Appium - Driver “xcuitest” (package appium-xcuitest-driver) may be incompatible with the current version of Appium (v2.0.0-beta.40) due to an invalid or missing peer dependency on Appium. Please ask the developer of appium-xcuitest-driver to add a peer dependency on ^[email protected].
WARN Appium Driver “uiautomator2” has 1 potential problem:
WARN Appium - Driver “uiautomator2” (package appium-uiautomator2-driver) may be incompatible with the current version of Appium (v2.0.0-beta.40) due to an invalid or missing peer dependency on Appium. Please ask the developer of appium-uiautomator2-driver to add a peer dependency on ^[email protected].
WARN Appium Driver “mac2” has 1 potential problem:
WARN Appium - Driver “mac2” (package appium-mac2-driver) may be incompatible with the current version of Appium (v2.0.0-beta.40) due to an invalid or missing peer dependency on Appium. Please ask the developer of appium-mac2-driver to add a peer dependency on ^[email protected].
[Appium] Welcome to Appium v2.0.0-beta.40 (REV fba051f98f609634ae4392d0053ddfc627f8cdb3)
[Appium] Non-default server args:
[Appium] {
[Appium] address: ‘127.0.0.1’,
[Appium] basePath: ‘/wd/hub’
[Appium] }
[Appium] Attempting to load driver xcuitest…
[debug] [Appium] Requiring driver at /Users/ User.admin/.appium/node_modules/appium-xcuitest-driver
[Appium] Attempting to load driver uiautomator2…
[debug] [Appium] Requiring driver at /Users/ User.admin/.appium/node_modules/appium-uiautomator2-driver
[Appium] Attempting to load driver mac2…
[debug] [Appium] Requiring driver at /Users/ User.admin/.appium/node_modules/appium-mac2-driver
(node:64707) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 exit listeners added to [process]. Use emitter.setMaxListeners() to increase limit
(Use node --trace-warnings ... to show where the warning was created)
[Appium] Appium REST http interface listener started on 127.0.0.1:4723
[Appium] Available drivers:
[Appium] - [email protected] (automationName ‘XCUITest’)
[Appium] - [email protected] (automationName ‘UiAutomator2’)
[Appium] - [email protected] (automationName ‘Mac2’)
[Appium] No plugins have been installed. Use the “appium plugin” command to install the one(s) you want to use.
[HTTP] --> GET /wd/hub/sessions
[HTTP] {}
[debug] [[email protected]] Calling AppiumDriver.getSessions() with args: []
[debug] [[email protected]] Responding to client with driver.getSessions() result: []
[HTTP] <-- GET /wd/hub/sessions 304 10 ms - -
[HTTP]
[HTTP] --> GET /wd/hub/sessions
[HTTP] {}
[debug] [[email protected]] Calling AppiumDriver.getSessions() with args: []
[debug] [[email protected]] Responding to client with driver.getSessions() result: []
[HTTP] <-- GET /wd/hub/sessions 304 2 ms - -
[HTTP]
[HTTP] --> POST /wd/hub/session
[HTTP] {“capabilities”:{“alwaysMatch”:{“platformName”:“Mac”,“appium:bundleId”:“com.philandro.anydesk”,“appium:deviceName”:“Mac”,“appium:automationName”:“Mac2”,“appium:showServerLogs”:true,“appium:newCommandTimeout”:3600,“appium:connectHardwareKeyboard”:true},“firstMatch”:[{}]},“desiredCapabilities”:{“platformName”:“Mac”,“appium:bundleId”:“com.philandro.anydesk”,“appium:deviceName”:“Mac”,“appium:automationName”:“Mac2”,“appium:showServerLogs”:true,“appium:newCommandTimeout”:3600,“appium:connectHardwareKeyboard”:true}}
[debug] [[email protected]] Calling AppiumDriver.createSession() with args: [{“platformName”:“Mac”,“appium:bundleId”:“com.philandro.anydesk”,“appium:deviceName”:“Mac”,“appium:automationName”:“Mac2”,“appium:showServerLogs”:true,“appium:newCommandTimeout”:3600,“appium:connectHardwareKeyboard”:true},null,{“alwaysMatch”:{“platformName”:“Mac”,“appium:bundleId”:“com.philandro.anydesk”,“appium:deviceName”:“Mac”,“appium:automationName”:“Mac2”,“appium:showServerLogs”:true,“appium:newCommandTimeout”:3600,“appium:connectHardwareKeyboard”:true},“firstMatch”:[{}]}]
[debug] [[email protected]] Event ‘newSessionRequested’ logged at 1655442503946 (10:38:23 GMT+0530 (India Standard Time))
[Appium] Attempting to find matching driver for automationName ‘Mac2’ and platformName ‘Mac’
[Appium] The ‘mac2’ driver was installed and matched caps.
[Appium] Will require it at /Users/ User.admin/.appium/node_modules/appium-mac2-driver
[debug] [Appium] Requiring driver at /Users/ User.admin/.appium/node_modules/appium-mac2-driver
[[email protected]] Appium v2.0.0-beta.40 creating new Mac2Driver (v1.1.7) session
[[email protected]] Checking BaseDriver versions for Appium and Mac2Driver
[[email protected]] Appium’s BaseDriver version is 8.5.7
[[email protected]] Mac2Driver’s BaseDriver version is 8.5.3
[debug] [[email protected]] Creating session with W3C capabilities: {
[debug] [[email protected]] “alwaysMatch”: {
[debug] [[email protected]] “platformName”: “Mac”,
[debug] [[email protected]] “appium:bundleId”: “com.philandro.anydesk”,
[debug] [[email protected]] “appium:deviceName”: “Mac”,
[debug] [[email protected]] “appium:automationName”: “Mac2”,
[debug] [[email protected]] “appium:showServerLogs”: true,
[debug] [[email protected]] “appium:newCommandTimeout”: 3600,
[debug] [[email protected]] “appium:connectHardwareKeyboard”: true
[debug] [[email protected]] },
[debug] [[email protected]] “firstMatch”: [
[debug] [[email protected]] {}
[debug] [[email protected]] ]
[debug] [[email protected]] }
[[email protected]] The following capabilities were provided, but are not recognized by Appium:
[[email protected]] connectHardwareKeyboard
[[email protected] (f4b98ce6)] Session created with session id: f4b98ce6-10e9-4a8a-b069-6a467c773648
[debug] [WebDriverAgentMac] Using bootstrap root: /Users/ User.admin/.appium/node_modules/appium-mac2-driver/WebDriverAgentMac
[debug] [WebDriverAgentMac] Using xcodebuild binary at ‘/usr/bin/xcodebuild’
[WebDriverAgentMac] Unable to create the recent WebDriverAgent upgrade timestamp at ‘/Users/ User.admin/.appium/webdriveragent_mac/upgrade.time’. Original error: EACCES: permission denied, mkdir ‘/Users/ User.admin/.appium/webdriveragent_mac’
[debug] [WebDriverAgentMac] Using 127.0.0.1 as server host
[debug] [WebDriverAgentMac] Using port 10100
[WebDriverAgentMac] Starting Mac2Driver host process: xcodebuild build-for-testing test-without-building -project /Users/ User.admin/.appium/node_modules/appium-mac2-driver/WebDriverAgentMac/WebDriverAgentMac.xcodeproj -scheme WebDriverAgentRunner COMPILER_INDEX_STORE_ENABLE=NO
[debug] [WD Proxy] Matched ‘/status’ to command name ‘getStatus’
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:10100/status] with no body
[WD Proxy] connect ECONNREFUSED 127.0.0.1:10100
[debug] [WebDriverAgentMac] [xcodebuild] 2022-06-17 10:38:24.335 xcodebuild[64839:2680928] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
[debug] [WebDriverAgentMac] [xcodebuild] 2022-06-17 10:38:24.335 xcodebuild[64839:2680928] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
[debug] [WebDriverAgentMac] [xcodebuild] Command line invocation:
[debug] [WebDriverAgentMac] [xcodebuild] /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild build-for-testing test-without-building -project /Users/ User.admin/.appium/node_modules/appium-mac2-driver/WebDriverAgentMac/WebDriverAgentMac.xcodeproj -scheme WebDriverAgentRunner COMPILER_INDEX_STORE_ENABLE=NO
[debug] [WebDriverAgentMac]
[debug] [WebDriverAgentMac] User defaults from command line:
[debug] [WebDriverAgentMac] IDEPackageSupportUseBuiltinSCM = YES
[debug] [WebDriverAgentMac]
[debug] [WebDriverAgentMac] Build settings from command line:
[debug] [WebDriverAgentMac] COMPILER_INDEX_STORE_ENABLE = NO
[debug] [WebDriverAgentMac] [xcodebuild] — xcodebuild: WARNING: Using the first of multiple matching destinations:
[debug] [WebDriverAgentMac] { platform:macOS, arch:arm64, id:00006000-001018DA3C29801E }
[debug] [WebDriverAgentMac] { platform:macOS, arch:x86_64, id:00006000-001018DA3C29801E }
[debug] [WebDriverAgentMac] { platform:macOS, name:Any Mac }
[debug] [WebDriverAgentMac] [xcodebuild] — xcodebuild: WARNING: Using the first of multiple matching destinations:
[debug] [WebDriverAgentMac] { platform:macOS, arch:arm64, id:00006000-001018DA3C29801E }
[debug] [WebDriverAgentMac] { platform:macOS, arch:x86_64, id:00006000-001018DA3C29801E }
[debug] [WebDriverAgentMac] { platform:macOS, name:Any Mac }
[debug] [WD Proxy] Matched ‘/status’ to command name ‘getStatus’
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:10100/status] with no body
[WD Proxy] connect ECONNREFUSED 127.0.0.1:10100
[debug] [WebDriverAgentMac] [xcodebuild] note: Using new build system
[debug] [WebDriverAgentMac] [xcodebuild] note: Planning
[debug] [WebDriverAgentMac] [xcodebuild] Analyze workspace
[debug] [WebDriverAgentMac] [xcodebuild] Create build description
[debug] [WebDriverAgentMac] [xcodebuild] Build description signature: 6f6604c67c758f2464127e4179f74f50
[debug] [WebDriverAgentMac] [xcodebuild] Build description path: /Users/ User.admin/Library/Developer/Xcode/DerivedData/WebDriverAgentMac-gyhvrecudwhdbodwzrruwflkbpcy/Build/Intermediates.noindex/XCBuildData/6f6604c67c758f2464127e4179f74f50-desc.xcbuild
[debug] [WebDriverAgentMac] [xcodebuild] note: Build preparation complete
[debug] [WebDriverAgentMac] [xcodebuild] note: Building targets in dependency order
[debug] [WebDriverAgentMac] [xcodebuild] ** TEST BUILD SUCCEEDED **
[debug] [WebDriverAgentMac] [xcodebuild] *** If you believe this error represents a bug, please attach the result bundle at /Users/ User.admin/Library/Developer/Xcode/DerivedData/WebDriverAgentMac-gyhvrecudwhdbodwzrruwflkbpcy/Logs/Test/Test-WebDriverAgentRunner-2022.06.17_10-38-24-+0530.xcresult
[debug] [WD Proxy] Matched ‘/status’ to command name ‘getStatus’
[debug] [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:10100/status] with no body
[WD Proxy] connect ECONNREFUSED 127.0.0.1:10100
[debug] [WebDriverAgentMac] [xcodebuild] 2022-06-17 10:38:26.033 xcodebuild[64839:2680939] IDETestOperationsObserverDebug: Failure collecting logarchive: Error Domain=OSLogErrorDomain Code=13 "Log archive creation failed with error 13, warnings during creation: failed to read version.plist
[debug] [WebDriverAgentMac] " UserInfo={NSLocalizedDescription=Log archive creation failed with error 13, warnings during creation: failed to read version.plist
[debug] [WebDriverAgentMac] }
[debug] [WebDriverAgentMac] [xcodebuild] 2022-06-17 10:38:26.036 xcodebuild[64839:2680928] [MT] IDETestOperationsObserverDebug: 0.572 elapsed – Testing started completed.
[debug] [WebDriverAgentMac] 2022-06-17 10:38:26.036 xcodebuild[64839:2680928] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec – start
[debug] [WebDriverAgentMac] [xcodebuild] 2022-06-17 10:38:26.036 xcodebuild[64839:2680928] [MT] IDETestOperationsObserverDebug: 0.572 sec, +0.572 sec – end
[debug] [WebDriverAgentMac] [xcodebuild] Test session results, code coverage, and logs:
[debug] [WebDriverAgentMac] /Users/ User.admin/Library/Developer/Xcode/DerivedData/WebDriverAgentMac-gyhvrecudwhdbodwzrruwflkbpcy/Logs/Test/Test-WebDriverAgentRunner-2022.06.17_10-38-24-+0530.xcresult
[debug] [WebDriverAgentMac] [xcodebuild] Testing failed:
[debug] [WebDriverAgentMac] WebDriverAgentRunner:
[debug] [WebDriverAgentMac] WebDriverAgentRunner-Runner encountered an error (Failed to install or launch the test runner. If you believe this error represents a bug, please attach the result bundle at /Users/ User.admin/Library/Developer/Xcode/DerivedData/WebDriverAgentMac-gyhvrecudwhdbodwzrruwflkbpcy/Logs/Test/Test-WebDriverAgentRunner-2022.06.17_10-38-24-+0530.xcresult. (Underlying Error: Could not launch “WebDriverAgentRunner”. The LaunchServices launcher has returned an error. Please check the system logs for the underlying cause of the error. (Underlying Error: The operation couldn’t be completed. Launch failed. (Underlying Error: Launchd job spawn failed))))
[debug] [WebDriverAgentMac]
[debug] [WebDriverAgentMac] ** TEST EXECUTE FAILED **
[debug] [WebDriverAgentMac] [xcodebuild] Testing started
[WebDriverAgentMac] Mac2Driver host process has exited with code 65, signal null
[WebDriverAgentMac] Mac2Driver session cannot be stopped, because the server is not running
[debug] [[email protected]] Event ‘newSessionStarted’ logged at 1655442506987 (10:38:26 GMT+0530 (India Standard Time))
[debug] [[email protected]] Encountered internal error running command: Error: An unknown server-side error occurred while processing the command. Original error: ‘GET /status’ cannot be proxied to Mac2 Driver server because its process is not running (probably crashed). Check the Appium log for more details
[debug] [[email protected]] at WDAMacServer.isProxyReady (/Users/ User.admin/.appium/node_modules/appium-mac2-driver/lib/wda-mac.js:328:15)
[debug] [[email protected]] at waitMs (/Users/ User.admin/.appium/node_modules/appium-mac2-driver/lib/wda-mac.js:422:44)
[debug] [[email protected]] at spin (/Users/ User.admin/.appium/node_modules/appium-mac2-driver/node_modules/asyncbox/lib/asyncbox.js:138:20)
[debug] [[email protected]] at spin (/Users/ User.admin/.appium/node_modules/appium-mac2-driver/node_modules/asyncbox/lib/asyncbox.js:148:14)
[debug] [[email protected]] at spin (/Users/ User.admin/.appium/node_modules/appium-mac2-driver/node_modules/asyncbox/lib/asyncbox.js:148:14)
[debug] [[email protected]] at spin (/Users/ User.admin/.appium/node_modules/appium-mac2-driver/node_modules/asyncbox/lib/asyncbox.js:148:14)
[debug] [[email protected]] at waitForCondition (/Users/ User.admin/.appium/node_modules/appium-mac2-driver/node_modules/asyncbox/lib/asyncbox.js:155:10)
[debug] [[email protected]] at WDAMacServer.startSession (/Users/ User.admin/.appium/node_modules/appium-mac2-driver/lib/wda-mac.js:422:9)
[debug] [[email protected]] at Mac2Driver.createSession (/Users/ User.admin/.appium/node_modules/appium-mac2-driver/lib/driver.js:90:7)
[debug] [[email protected]] at AppiumDriver.createSession (/opt/homebrew/lib/node_modules/appium/lib/appium.js:334:35)
[HTTP] <-- POST /wd/hub/session 500 3106 ms - 965

It looks like there are some limitations which prevents the server from execution on your system. Make sure it has the necessary security permissions (as described in Readme) and/or there is no security software installed there that may prevent it from running.

Also check the system console logs as stated in the error text - perhaps they contain more useful info.

@mykola-mokhnach Okay sure, thank you for your time :smile: