@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] [AppiumDriver@bd98] Calling AppiumDriver.getSessions() with args: []
[debug] [AppiumDriver@bd98] Responding to client with driver.getSessions() result: []
[HTTP] <-- GET /wd/hub/sessions 304 10 ms - -
[HTTP]
[HTTP] --> GET /wd/hub/sessions
[HTTP] {}
[debug] [AppiumDriver@bd98] Calling AppiumDriver.getSessions() with args: []
[debug] [AppiumDriver@bd98] 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] [AppiumDriver@bd98] 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] [AppiumDriver@bd98] 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
[AppiumDriver@bd98] Appium v2.0.0-beta.40 creating new Mac2Driver (v1.1.7) session
[AppiumDriver@bd98] Checking BaseDriver versions for Appium and Mac2Driver
[AppiumDriver@bd98] Appium’s BaseDriver version is 8.5.7
[AppiumDriver@bd98] Mac2Driver’s BaseDriver version is 8.5.3
[debug] [Mac2Driver@89e8] Creating session with W3C capabilities: {
[debug] [Mac2Driver@89e8] “alwaysMatch”: {
[debug] [Mac2Driver@89e8] “platformName”: “Mac”,
[debug] [Mac2Driver@89e8] “appium:bundleId”: “com.philandro.anydesk”,
[debug] [Mac2Driver@89e8] “appium:deviceName”: “Mac”,
[debug] [Mac2Driver@89e8] “appium:automationName”: “Mac2”,
[debug] [Mac2Driver@89e8] “appium:showServerLogs”: true,
[debug] [Mac2Driver@89e8] “appium:newCommandTimeout”: 3600,
[debug] [Mac2Driver@89e8] “appium:connectHardwareKeyboard”: true
[debug] [Mac2Driver@89e8] },
[debug] [Mac2Driver@89e8] “firstMatch”: [
[debug] [Mac2Driver@89e8] {}
[debug] [Mac2Driver@89e8] ]
[debug] [Mac2Driver@89e8] }
[Mac2Driver@89e8] The following capabilities were provided, but are not recognized by Appium:
[Mac2Driver@89e8] connectHardwareKeyboard
[Mac2Driver@89e8 (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] [AppiumDriver@bd98] Event ‘newSessionStarted’ logged at 1655442506987 (10:38:26 GMT+0530 (India Standard Time))
[debug] [AppiumDriver@bd98] 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] [AppiumDriver@bd98] at WDAMacServer.isProxyReady (/Users/ User.admin/.appium/node_modules/appium-mac2-driver/lib/wda-mac.js:328:15)
[debug] [AppiumDriver@bd98] at waitMs (/Users/ User.admin/.appium/node_modules/appium-mac2-driver/lib/wda-mac.js:422:44)
[debug] [AppiumDriver@bd98] at spin (/Users/ User.admin/.appium/node_modules/appium-mac2-driver/node_modules/asyncbox/lib/asyncbox.js:138:20)
[debug] [AppiumDriver@bd98] at spin (/Users/ User.admin/.appium/node_modules/appium-mac2-driver/node_modules/asyncbox/lib/asyncbox.js:148:14)
[debug] [AppiumDriver@bd98] at spin (/Users/ User.admin/.appium/node_modules/appium-mac2-driver/node_modules/asyncbox/lib/asyncbox.js:148:14)
[debug] [AppiumDriver@bd98] at spin (/Users/ User.admin/.appium/node_modules/appium-mac2-driver/node_modules/asyncbox/lib/asyncbox.js:148:14)
[debug] [AppiumDriver@bd98] at waitForCondition (/Users/ User.admin/.appium/node_modules/appium-mac2-driver/node_modules/asyncbox/lib/asyncbox.js:155:10)
[debug] [AppiumDriver@bd98] at WDAMacServer.startSession (/Users/ User.admin/.appium/node_modules/appium-mac2-driver/lib/wda-mac.js:422:9)
[debug] [AppiumDriver@bd98] at Mac2Driver.createSession (/Users/ User.admin/.appium/node_modules/appium-mac2-driver/lib/driver.js:90:7)
[debug] [AppiumDriver@bd98] at AppiumDriver.createSession (/opt/homebrew/lib/node_modules/appium/lib/appium.js:334:35)
[HTTP] <-- POST /wd/hub/session 500 3106 ms - 965