[XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: Unable to start WebDriverAgent: Error: Command 'xcodebuild' not found. Is it installed?
See original GitHub issueHi,
No matter what I try. I canāt seem to get Appium to launch my app. It already fails at detecting xcodebuild
so it seems:
Both in zsh & bash terminal I am able to locate the xcodebuild binary. I have Xcode & the commandline tools properly installed.
āÆ ī° ~ ī° which xcodebuild
/usr/bin/xcodebuild
āÆ ī° ~ ī° bash
bash-5.1$ which xcodebuild
/usr/bin/xcodebuild
bash-5.1$
This is the set of desired capabilities:
{
"deviceName": "iPhone 11",
"platformName": "iOS",
"platformVersion": "14.3",
"bundleId": "my.beautiful.app",
"automationName": "XCUITest",
"agentPath": "/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj",
"bootstrapPath": "/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent",
"showXcodeLog": true,
"showIOSLog": true
}
Hereās the full output from Appium Desktop. Anyone knows what might be happening?
[info] [35m[Appium][39m Welcome to Appium v1.19.1
[info] [35m[Appium][39m Non-default server args:
[info] [35m[Appium][39m relaxedSecurityEnabled: true
[info] [35m[Appium][39m allowInsecure: {
[info] [35m[Appium][39m }
[info] [35m[Appium][39m denyInsecure: {
[info] [35m[Appium][39m }
[info] [35m[Appium][39m Appium REST http interface listener started on 0.0.0.0:4723[info] [35m[HTTP][39m [37m-->[39m [37mPOST[39m [37m/wd/hub/session[39m
[info] [35m[HTTP][39m [90m{"desiredCapabilities":{"agentPath":"/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj","automationName":"XCUITest","bootstrapPath":"/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragentWebDriverAgent","bundleId":"my.beautiful.app","deviceName":"iPhone 11","platformName":"iOS","platformVersion":"14.3","showIOSLog":true,"showXcodeLog":true,"newCommandTimeout":0,"connectHardwareKeyboard":true}}[39m
[debug] [35m[MJSONWP][39m Calling AppiumDriver.createSession() with args: [{"agentPath":"/Applications/Appium.app/Contents/Resources/app/node_modules/amoppium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj","automationName":"XCUITest","bootstrapPath":"/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragentWebDriverAgent","bundleId":"my.beautiful.app","deviceName":"iPhone 11","platformName":"iOS","platformVersion":"14.3","showIOSLog":true,"showXcodeLog":true,"newCommandTimeout":0,"connectHardwareKeyboard":true},null,null]
[debug] [35m[BaseDriver][39m Event 'newSessionRequested' logged at 1608274501192 (07:55:01 GMT+0100 (Central European Standard Time))
[info] [35m[Appium][39m Appium v1.19.1 creating new XCUITestDriver (v3.31.1) session
[info] [35m[Appium][39m Applying relaxed security to 'XCUITestDriver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure
[debug] [35m[BaseDriver][39m Creating session with MJSONWP desired capabilities: {
[debug] [35m[BaseDriver][39m "agentPath": "/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj",
[debug] [35m[BaseDriver][39m "automationName": "XCUITest",
[debug] [35m[BaseDriver][39m "bootstrapPath": "/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragentWebDriverAgent",
[debug] [35m[BaseDriver][39m "bundleId": "my.beautiful.app",
[debug] [35m[BaseDriver][39m "deviceName": "iPhone 11",
[debug] [35m[BaseDriver][39m "platformName": "iOS",
[debug] [35m[BaseDriver][39m "platformVersion": "14.3",
[debug] [35m[BaseDriver][39m "showIOSLog": true,
[debug] [35m[BaseDriver][39m "showXcodeLog": true,
[debug] [35m[BaseDriver][39m "newCommandTimeout": 0,
[debug] [35m[BaseDriver][39m "connectHardwareKeyboard": true
[debug] [35m[BaseDriver][39m }
[info] [35m[BaseDriver][39m Session created with session id: 308fec8b-360b-472b-ac9e-bb1a9afce04c[debug] [35m[XCUITest][39m Current user: 'lode'
[info] [35m[XCUITest][39m iOS SDK Version set to '14.3'[info] [35m[iOSSim][39m Constructing iOS simulator for Xcode version 12.3 with udid '653AF053-A8C2-4207-9296-61B47A96588E'
[info] [35m[XCUITest][39m Determining device to run tests on: udid: '653AF053-A8C2-4207-9296-61B47A96588E', real device: false
[debug] [35m[BaseDriver][39m Event 'xcodeDetailsRetrieved' logged at 1608274502652 (07:55:02 GMT+0100 (Central European Standard Time))
[debug] [35m[BaseDriver][39m Event 'appConfigured' logged at 1608274502652 (07:55:02 GMT+0100 (Central European Standard Time))
[debug] [35m[BaseDriver][39m Event 'resetStarted' logged at 1608274502652 (07:55:02 GMT+0100 (Central European Standard Time))[debug] [35m[iOSSim][39m Cleaning app data files for '', 'my.beautiful.app'
[debug] [35m[iOSSim][39m Checking whether simulator has been run before: yes
[debug] [35m[iOSSim][39m Building bundle path map[debug] [35m[iOSSim][39m Could not find app directories to delete. It is probably not installed
[debug] [35m[BaseDriver][39m Event 'resetComplete' logged at 1608274503320 (07:55:03 GMT+0100 (Central European Standard Time))
[info] [35m[WebDriverAgent][39m Using WDA path: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragentWebDriverAgent'
[info] [35m[WebDriverAgent][39m Using WDA agent: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj'
[debug] [35m[IOSSimulatorLog][39m Starting log capture for iOS Simulator with udid '653AF053-A8C2-4207-9296-61B47A96588E' using simctl[debug] [35m[BaseDriver][39m Event 'logCaptureStarted' logged at 1608274504418 (07:55:04 GMT+0100 (Central European Standard Time))
[info] [35m[XCUITest][39m Setting up simulator
[debug] [35m[iOS][39m No reason to set locale
[debug] [35m[iOS][39m No iOS / app preferences to set
[debug] [35m[iOS][39m Setting did not need to be updated
[debug] [35m[iOSSim][39m Setting preferences of 653AF053-A8C2-4207-9296-61B47A96588E Simulator to {"ConnectHardwareKeyboard":true}
[debug] [35m[iOSSim][39m Setting common Simulator preferences to {"RotateWindowWhenSignaledByGuest":true,"ConnectHardwareKeyboard":true}
[debug] [35m[iOSSim][39m Updated 653AF053-A8C2-4207-9296-61B47A96588E Simulator preferences at '/Users/lode/Library/Preferences/com.apple.iphonesimulator.plist' with {"DevicePreferences":{"653AF053-A8C2-4207-9296-61B47A96588E":{"ConnectHardwareKeyboard":true}},"RotateWindowWhenSignaledByGuest":true,"ConnectHardwareKeyboard":true}[debug] [35m[iOSSim][39m Got Simulator UI client PID: 6856
[info] [35m[iOSSim][39m Both Simulator with UDID '653AF053-A8C2-4207-9296-61B47A96588E' and the UI client are currently running
[debug] [35m[BaseDriver][39m Event 'simStarted' logged at 1608274504699 (07:55:04 GMT+0100 (Central European Standard Time))[debug] [35m[WebDriverAgent][39m No obsolete cached processes from previous WDA sessions listening on port 8100 have been found
[info] [35m[DevCon Factory][39m Requesting connection for device 653AF053-A8C2-4207-9296-61B47A96588E on local port 8100
[debug] [35m[DevCon Factory][39m Cached connections count: 0
[info] [35m[DevCon Factory][39m Successfully requested the connection for 653AF053-A8C2-4207-9296-61B47A96588E:8100
[debug] [35m[XCUITest][39m Starting WebDriverAgent initialization with the synchronization key 'XCUITestDriver'
[debug] [35m[WD Proxy][39m Matched '/status' to command name 'getStatus'
[debug] [35m[WD Proxy][39m Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[info] [35m[WD Proxy][39m connect ECONNREFUSED 127.0.0.1:8100
[debug] [35m[WebDriverAgent][39m WDA is not listening at 'http://127.0.0.1:8100/'
[debug] [35m[WebDriverAgent][39m WDA is currently not running. There is nothing to cache
[debug] [35m[XCUITest][39m Trying to start WebDriverAgent 2 times with 10000ms interval
[debug] [35m[XCUITest][39m These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities
[debug] [35m[BaseDriver][39m Event 'wdaStartAttempted' logged at 1608274504992 (07:55:04 GMT+0100 (Central European Standard Time))
[info] [35m[WebDriverAgent][39m Launching WebDriverAgent on the device
[info] [35m[WebDriverAgent][39m Fetching dependencies
[info] [35m[WebDriverAgent][39m Dependencies up-to-date
[debug] [35m[WebDriverAgent][39m Killing running processes 'xcodebuild.*653AF053-A8C2-4207-9296-61B47A96588E, 653AF053-A8C2-4207-9296-61B47A96588E.*XCTRunner, xctest.*653AF053-A8C2-4207-9296-61B47A96588E' for the device 653AF053-A8C2-4207-9296-61B47A96588E...
[debug] [35m[WebDriverAgent][39m 'pgrep -if xcodebuild.*653AF053-A8C2-4207-9296-61B47A96588E' didn't detect any matching processes. Return code: 1
[debug] [35m[WebDriverAgent][39m 'pgrep -if 653AF053-A8C2-4207-9296-61B47A96588E.*XCTRunner' didn't detect any matching processes. Return code: 1
[debug] [35m[WebDriverAgent][39m 'pgrep -if xctest.*653AF053-A8C2-4207-9296-61B47A96588E' didn't detect any matching processes. Return code: 1
[debug] [35m[WebDriverAgent][39m Beginning test with command 'xcodebuild build-for-testing test-without-building -project /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=653AF053-A8C2-4207-9296-61B47A96588E IPHONEOS_DEPLOYMENT_TARGET=14.3 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO' in directory '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragentWebDriverAgent'
[debug] [35m[WebDriverAgent][39m Output from xcodebuild will be logged. To change this, use 'showXcodeLog' desired capability
[error] [35m[WebDriverAgent][39m Unable to start WebDriverAgent: Error: Command 'xcodebuild' not found. Is it installed?[info] [35m[WebDriverAgent][39m Dependencies up-to-date
[debug] [35m[WebDriverAgent][39m Killing running processes 'xcodebuild.*653AF053-A8C2-4207-9296-61B47A96588E, 653AF053-A8C2-4207-9296-61B47A96588E.*XCTRunner, xctest.*653AF053-A8C2-4207-9296-61B47A96588E' for the device 653AF053-A8C2-4207-9296-61B47A96588E...
[debug] [35m[WebDriverAgent][39m 'pgrep -if xcodebuild.*653AF053-A8C2-4207-9296-61B47A96588E' didn't detect any matching processes. Return code: 1
[debug] [35m[WebDriverAgent][39m 'pgrep -if 653AF053-A8C2-4207-9296-61B47A96588E.*XCTRunner' didn't detect any matching processes. Return code: 1
[debug] [35m[WebDriverAgent][39m 'pgrep -if xctest.*653AF053-A8C2-4207-9296-61B47A96588E' didn't detect any matching processes. Return code: 1
[debug] [35m[WebDriverAgent][39m Beginning test with command 'xcodebuild build-for-testing test-without-building -project /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=653AF053-A8C2-4207-9296-61B47A96588E IPHONEOS_DEPLOYMENT_TARGET=14.3 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO' in directory '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragentWebDriverAgent'
[debug] [35m[WebDriverAgent][39m Output from xcodebuild will be logged. To change this, use 'showXcodeLog' desired capability
[error] [35m[WebDriverAgent][39m Unable to start WebDriverAgent: Error: Command 'xcodebuild' not found. Is it installed?
[debug] [35m[BaseDriver][39m Event 'wdaStartFailed' logged at 1608274505184 (07:55:05 GMT+0100 (Central European Standard Time))
[debug] [35m[XCUITest][39m Unable to launch WebDriverAgent because of xcodebuild failure: Unable to start WebDriverAgent: Error: Command 'xcodebuild' not found. Is it installed?
[warn] [35m[XCUITest][39m Quitting and uninstalling WebDriverAgent
[info] [35m[WebDriverAgent][39m Shutting down sub-processes
[info] [35m[WebDriverAgent][39m Shutting down 'xcodebuild' process (pid 'undefined')
[info] [35m[WebDriverAgent][39m Sending 'SIGTERM'...[debug] [35m[WebDriverAgent][39m xcodebuild process did not end in a timely fashion: 'Process didn't end after 1000ms (cmd: 'xcodebuild build-for-testing test-without-building -project /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id\=653AF053-A8C2-4207-9296-61B47A96588E IPHONEOS_DEPLOYMENT_TARGET\=14.3 GCC_TREAT_WARNINGS_AS_ERRORS\=0 COMPILER_INDEX_STORE_ENABLE\=NO')'.
[info] [35m[WebDriverAgent][39m Sending 'SIGKILL'...[debug] [35m[WebDriverAgent][39m Parsed BUILD_DIR configuration value: '/Users/lode/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Build/Products'
[debug] [35m[WebDriverAgent][39m Got derived data root: '/Users/lode/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp'[info] [35m[IOSSimulatorLog][39m [IOS_SYSLOG_ROW] 2020-12-18 07:55:15.825 Df fontservicesd[36773:f528d] [com.apple.xpc.activity:Client] _xpc_activity_dispatch: beginning dispatch, activity name com.apple.fontservicesd.subscription-support, seqno 0
[info] [35m[IOSSimulatorLog][39m [IOS_SYSLOG_ROW] 2020-12-18 07:55:15.825 Df fontservicesd[36773:f528d] [com.apple.xpc.activity:Client] _xpc_activity_dispatch: com.apple.fontservicesd.subscription-support (0x7f895df05450): found an activity with matching seqno 0
[info] [35m[IOSSimulatorLog][39m [IOS_SYSLOG_ROW] 2020-12-18 07:55:15.826 Df fontservicesd[36773:f528d] [com.apple.xpc.activity:Client] _xpc_activity_dispatch: lower half, activity name com.apple.fontservicesd.subscription-support (0x7f895df05450), seqno from top half was 0
[info] [35m[IOSSimulatorLog][39m [IOS_SYSLOG_ROW] 2020-12-18 07:55:15.826 Df fontservicesd[36773:f528d] [com.apple.xpc.activity:Client] _xpc_activity_set_state: com.apple.fontservicesd.subscription-support (0x7f895df05450), 2
[info] [35m[IOSSimulatorLog][39m [IOS_SYSLOG_ROW] 2020-12-18 07:55:15.826 Df fontservicesd[36773:f528d] [com.apple.xpc.activity:Client] _xpc_activity_set_state: send new state to CTS: com.apple.fontservicesd.subscription-support (0x7f895df05450), 2
[info] [35m[IOSSimulatorLog][39m [IOS_SYSLOG_ROW] 2020-12-18 07:55:15.827 Df UserEventAgent[36726:f546a] [com.apple.xpc.activity:Activities] Running XPC Activity (PID 36773): com.apple.fontservicesd.subscription-support (0x7fccb340b850)
[info] [35m[IOSSimulatorLog][39m [IOS_SYSLOG_ROW] 2020-12-18 07:55:15.828 Df fontservicesd[36773:f528d] [com.apple.xpc.activity:Client] _xpc_activity_set_state_from_cts: com.apple.fontservicesd.subscription-support (0x7f895df05450), set activity state to 2
[info] [35m[IOSSimulatorLog][39m [IOS_SYSLOG_ROW] 2020-12-18 07:55:15.828 Df fontservicesd[36773:f528d] [com.apple.xpc.activity:Client] __XPC_ACTIVITY_CALLING_HANDLER__: com.apple.fontservicesd.subscription-support (0x7f895df05450), current state 2, pending state 0
[info] [35m[IOSSimulatorLog][39m [IOS_SYSLOG_ROW] 2020-12-18 07:55:15.828 Df fontservicesd[36773:f528d] [com.apple.xpc.activity:Client] __XPC_ACTIVITY_CALLING_HANDLER__ returned from handler: com.apple.fontservicesd.subscription-support (0x7f895df05450), current state 2, pending state 0
[info] [35m[IOSSimulatorLog][39m [IOS_SYSLOG_ROW] 2020-12-18 07:55:15.828 Df fontservicesd[36773:f528d] [com.apple.xpc.activity:Client] _xpc_activity_set_state: com.apple.fontservicesd.subscription-support (0x7f895df05450), 5
[info] [35m[IOSSimulatorLog][39m [IOS_SYSLOG_ROW] 2020-12-18 07:55:15.829 Df fontservicesd[36773:f528d] [com.apple.xpc.activity:Client] _xpc_activity_set_state: send new state to CTS: com.apple.fontservicesd.subscription-support (0x7f895df05450), 5
[info] [35m[IOSSimulatorLog][39m [IOS_SYSLOG_ROW] 2020-12-18 07:55:15.829 Df UserEventAgent[36726:f546a] [com.apple.xpc.activity:Activities] Completed XPC Activity: com.apple.fontservicesd.subscription-support (0x7fccb340b850)
[info] [35m[IOSSimulatorLog][39m [IOS_SYSLOG_ROW] 2020-12-18 07:55:15.832 Df UserEventAgent[36726:f546a] [com.apple.xpc.activity:Activities] Rescheduling XPC Activity: com.apple.fontservicesd.subscription-support (0x7fccb340b850)
[info] [35m[IOSSimulatorLog][39m [IOS_SYSLOG_ROW] 2020-12-18 07:55:15.833 Df fontservicesd[36773:f528d] [com.apple.xpc.activity:Client] _xpc_activity_set_state_from_cts: com.apple.fontservicesd.subscription-support (0x7f895df05450), set activity state to 1
[info] [35m[IOSSimulatorLog][39m [IOS_SYSLOG_ROW] 2020-12-18 07:55:15.876 Df mobileassetd[36797:f5282] [com.apple.mobileassetd:Notice] -[ControlManager handleClientConnection:on:]_block_invoke: assetType: com.apple.MobileAsset.Font6 client: fontservicesd, command: 1 (MA_QUERY_ASSET_TYPE)
[info] [35m[IOSSimulatorLog][39m [IOS_SYSLOG_ROW] 2020-12-18 07:55:15.876 Df mobileassetd[36797:f5282] [com.apple.mobileassetd:Notice] -[ControlManager handleClientConnection:on:]_block_invoke: fontservicesd issued query command for com.apple.MobileAsset.Font6
[info] [35m[IOSSimulatorLog][39m [IOS_SYSLOG_ROW] 2020-12-18 07:55:15.877 Df mobileassetd[36797:f5282] [com.apple.mobileassetd:Notice] -[ControlManager handleQueryRequest:clientName:connection:message:]: fontservicesd queried for: com.apple.MobileAsset.Font6 with returnType of: 1 (MAInstalledOnly) - may block on network sync
[info] [35m[IOSSimulatorLog][39m [IOS_SYSLOG_ROW] 2020-12-18 07:55:15.877 Df mobileassetd[36797:f5282] [com.apple.mobileassetd:Notice] -[ControlManager determineAssets:clientName:connection:downloadingTasks:message:resultTypes:queryArray:isForSpecificAsset:specificAssetId:specificAllowedDifferences:]: fontservicesd queried for: com.apple.MobileAsset.Font6 with returnType of: 1
[info] [35m[IOSSimulatorLog][39m [IOS_SYSLOG_ROW] 2020-12-18 07:55:15.878 Df mobileassetd[36797:f5282] [com.apple.mobileassetd:Notice] -[ControlManager determineAssets:clientName:connection:downloadingTasks:message:resultTypes:queryArray:isForSpecificAsset:specificAssetId:specificAllowedDifferences:]: fontservicesd unable to load repository for: com.apple.MobileAsset.Font6
[info] [35m[IOSSimulatorLog][39m [IOS_SYSLOG_ROW] 2020-12-18 07:55:15.878 Df mobileassetd[36797:f5282] [com.apple.mobileassetd:Notice] -[ControlManager loadCatalog:catalogAssets:assetIds:postedDate:lastFetchDate:catalogInfo:]: Could not load catalog for com.apple.MobileAsset.Font6
[info] [35m[IOSSimulatorLog][39m [IOS_SYSLOG_ROW] 2020-12-18 07:55:15.878 Df mobileassetd[36797:f5282] [com.apple.mobileassetd:Notice] -[ControlManager determineAssets:clientName:connection:downloadingTasks:message:resultTypes:queryArray:isForSpecificAsset:specificAssetId:specificAllowedDifferences:]: fontservicesd unable to load catalog for: com.apple.MobileAsset.Font6
[info] [35m[IOSSimulatorLog][39m [IOS_SYSLOG_ROW] 2020-12-18 07:55:15.878 Df mobileassetd[36797:f5282] [com.apple.mobileassetd:Notice] dataFillInstalled: preqs are nil for dataFilling
[info] [35m[IOSSimulatorLog][39m [IOS_SYSLOG_ROW] 2020-12-18 07:55:15.878 Df mobileassetd[36797:f5282] [com.apple.mobileassetd:Notice] dataFillInstalled: preqs are nil for dataFilling
[info] [35m[IOSSimulatorLog][39m [IOS_SYSLOG_ROW] 2020-12-18 07:55:15.879 Df fontservicesd[36773:f5484] [com.apple.mobileassetd:Notice] -[MAAssetQuery getResultsFromMessage:]: Got the query meta data reply for: com.apple.MobileAsset.Font6, response: 2
[info] [35m[IOSSimulatorLog][39m [IOS_SYSLOG_ROW] 2020-12-18 07:55:15.879 Df mobileassetd[36797:f5282] [com.apple.mobileassetd:Notice] -[ControlManager determineAssets:clientName:connection:downloadingTasks:message:resultTypes:queryArray:isForSpecificAsset:specificAssetId:specificAllowedDifferences:]: fontservicesd queried for: com.apple.MobileAsset.Font6 with returnTypes 1 (MAInstalledOnly) and found 0 assets with result 2 (MAQueryCatalogNotDownloaded) --> From 0 listed in the catalog and 0 local (0/0 downloaded, 0 preinstalled)--> Catalog info ((null)) --> Filtered for MAInstalledOnly to 0 in catalog (0 installed, 0 server-only, 0 preinstalled), 0 installedNotInCatalog, 0 installedWithOS, 0 requiredByOS; --> Merged to 0 assets[info] [35m[IOSSimulatorLog][39m [IOS_SYSLOG_ROW] 2020-12-18 07:55:16.026 Df useractivityd[36868:f525a] [com.apple.useractivity:main] SIMULATOR: Received message from another simulator on port 8963, so dispatching.
[info] [35m[IOSSimulatorLog][39m [IOS_SYSLOG_ROW] 2020-12-18 07:55:16.029 Df useractivityd[36868:f525a] [com.apple.useractivity:main] SIMULATOR: Item 7A9299E8-6309-4762-9D5C-50D24B88A63D seems to be different from (null), so changing received item & updating lists.
[info] [35m[IOSSimulatorLog][39m [IOS_SYSLOG_ROW] 2020-12-18 07:55:16.029 Df useractivityd[36868:f525a] [com.apple.useractivity:main] SIMULATOR: Unable to find application to handle typeIdentifier :com.apple.TextEdit.editing for item 7A9299E8-6309-4762-9D5C-50D24B88A63D[info] [35m[IOSSimulatorLog][39m [IOS_SYSLOG_ROW] 2020-12-18 07:55:23.580 Df useractivityd[36868:f525a] [com.apple.useractivity:main] SIMULATOR: Received message from another simulator on port 8963, so dispatching.
[info] [35m[IOSSimulatorLog][39m [IOS_SYSLOG_ROW] 2020-12-18 07:55:23.581 Df useractivityd[36868:f552a] [com.apple.useractivity:main] SIMULATOR: Clearing current item, because it has been removed ( was 7A9299E8-6309-4762-9D5C-50D24B88A63D/UAUserActivityInfo:{ type = UserActivity; uuid = 7A9299E8-6309-4762-9D5C-50D24B88A63D; activityType = "com.apple.TextEdit.editing"; dynamicActivityType = "(null)"; teamID=; - userInfo = $4d50030581b94e53557365724163746976697479446f63756d656e7455524cc7.. 176 ..3536613234643039653935376235343935613734643536333433336138623432 - - opts=(null); when = 2020-12-18 06:55:16 +0000 } { type = UserActivity; uuid = 7A9299E8-6309-4762-9D5C-50D24B88A63D; activityType = "com.apple.TextEdit.editing"; userInfo = $4d50030581b94e535573657241637469.. 176 ..35613734643536333433336138623432; eligible=NO}).[debug] [35m[BaseDriver][39m Event 'wdaStartAttempted' logged at 1608274526197 (07:55:26 GMT+0100 (Central European Standard Time))
[info] [35m[XCUITest][39m Retrying WDA startup (2 of 2)
[info] [35m[WebDriverAgent][39m Launching WebDriverAgent on the device
[info] [35m[WebDriverAgent][39m Fetching dependencies
[info] [35m[WebDriverAgent][39m Dependencies up-to-date
[debug] [35m[WebDriverAgent][39m Killing running processes 'xcodebuild.*653AF053-A8C2-4207-9296-61B47A96588E, 653AF053-A8C2-4207-9296-61B47A96588E.*XCTRunner, xctest.*653AF053-A8C2-4207-9296-61B47A96588E' for the device 653AF053-A8C2-4207-9296-61B47A96588E...
[debug] [35m[WebDriverAgent][39m 'pgrep -if xcodebuild.*653AF053-A8C2-4207-9296-61B47A96588E' didn't detect any matching processes. Return code: 1
[debug] [35m[WebDriverAgent][39m 'pgrep -if 653AF053-A8C2-4207-9296-61B47A96588E.*XCTRunner' didn't detect any matching processes. Return code: 1
[debug] [35m[WebDriverAgent][39m 'pgrep -if xctest.*653AF053-A8C2-4207-9296-61B47A96588E' didn't detect any matching processes. Return code: 1
[debug] [35m[WebDriverAgent][39m Beginning test with command 'xcodebuild build-for-testing test-without-building -project /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/lode/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp -destination id=653AF053-A8C2-4207-9296-61B47A96588E IPHONEOS_DEPLOYMENT_TARGET=14.3 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO' in directory '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragentWebDriverAgent'
[debug] [35m[WebDriverAgent][39m Output from xcodebuild will be logged. To change this, use 'showXcodeLog' desired capability
[error] [35m[WebDriverAgent][39m Unable to start WebDriverAgent: Error: Command 'xcodebuild' not found. Is it installed?
[info] [35m[WebDriverAgent][39m Launching WebDriverAgent on the device
[info] [35m[WebDriverAgent][39m Fetching dependencies
[info] [35m[WebDriverAgent][39m Dependencies up-to-date
[debug] [35m[WebDriverAgent][39m Killing running processes 'xcodebuild.*653AF053-A8C2-4207-9296-61B47A96588E, 653AF053-A8C2-4207-9296-61B47A96588E.*XCTRunner, xctest.*653AF053-A8C2-4207-9296-61B47A96588E' for the device 653AF053-A8C2-4207-9296-61B47A96588E...[debug] [35m[WebDriverAgent][39m 'pgrep -if xcodebuild.*653AF053-A8C2-4207-9296-61B47A96588E' didn't detect any matching processes. Return code: 1
[debug] [35m[WebDriverAgent][39m 'pgrep -if 653AF053-A8C2-4207-9296-61B47A96588E.*XCTRunner' didn't detect any matching processes. Return code: 1
[debug] [35m[WebDriverAgent][39m 'pgrep -if xctest.*653AF053-A8C2-4207-9296-61B47A96588E' didn't detect any matching processes. Return code: 1
[debug] [35m[WebDriverAgent][39m Beginning test with command 'xcodebuild build-for-testing test-without-building -project /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/lode/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp -destination id=653AF053-A8C2-4207-9296-61B47A96588E IPHONEOS_DEPLOYMENT_TARGET=14.3 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO' in directory '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragentWebDriverAgent'
[debug] [35m[WebDriverAgent][39m Output from xcodebuild will be logged. To change this, use 'showXcodeLog' desired capability
[error] [35m[WebDriverAgent][39m Unable to start WebDriverAgent: Error: Command 'xcodebuild' not found. Is it installed?
[debug] [35m[BaseDriver][39m Event 'wdaStartFailed' logged at 1608274526374 (07:55:26 GMT+0100 (Central European Standard Time))
[debug] [35m[XCUITest][39m Unable to launch WebDriverAgent because of xcodebuild failure: Unable to start WebDriverAgent: Error: Command 'xcodebuild' not found. Is it installed?
[warn] [35m[XCUITest][39m Quitting and uninstalling WebDriverAgent
[info] [35m[WebDriverAgent][39m Shutting down sub-processes
[info] [35m[WebDriverAgent][39m Shutting down 'xcodebuild' process (pid 'undefined')
[info] [35m[WebDriverAgent][39m Sending 'SIGTERM'...[debug] [35m[WebDriverAgent][39m xcodebuild process did not end in a timely fashion: 'Process didn't end after 1000ms (cmd: 'xcodebuild build-for-testing test-without-building -project /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/lode/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp -destination id\=653AF053-A8C2-4207-9296-61B47A96588E IPHONEOS_DEPLOYMENT_TARGET\=14.3 GCC_TREAT_WARNINGS_AS_ERRORS\=0 COMPILER_INDEX_STORE_ENABLE\=NO')'.
[info] [35m[WebDriverAgent][39m Sending 'SIGKILL'...[error] [35m[XCUITest][39m {}
[info] [35m[DevCon Factory][39m Releasing connections for 653AF053-A8C2-4207-9296-61B47A96588E device on any port number
[info] [35m[DevCon Factory][39m Found cached connections to release: ["653AF053-A8C2-4207-9296-61B47A96588E:8100"]
[debug] [35m[DevCon Factory][39m Cached connections count: 0
[debug] [35m[XCUITest][39m Not clearing log files. Use `clearSystemFiles` capability to turn on.
[debug] [35m[IOSSimulatorLog][39m Stopping iOS log capture
[debug] [35m[BaseDriver][39m Event 'newSessionStarted' logged at 1608274537432 (07:55:37 GMT+0100 (Central European Standard Time))
[debug] [35m[MJSONWP][39m Encountered internal error running command: Error: Process didn't end after 10000ms (cmd: 'xcodebuild build-for-testing test-without-building -project /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/lode/Library/Developer/Xcode/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp -destination id\=653AF053-A8C2-4207-9296-61B47A96588E IPHONEOS_DEPLOYMENT_TARGET\=14.3 GCC_TREAT_WARNINGS_AS_ERRORS\=0 COMPILER_INDEX_STORE_ENABLE\=NO')
[debug] [35m[MJSONWP][39m at Timeout._onTimeout (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/teen_process/lib/subprocess.js:231:16)
[debug] [35m[MJSONWP][39m at listOnTimeout (internal/timers.js:531:17)
[debug] [35m[MJSONWP][39m at processTimers (internal/timers.js:475:7)
[debug] [35m[MJSONWP][39m Destroying socket connection
[info] [35m[HTTP][39m [37m<-- POST /wd/hub/session [39m[31m500[39m [90m36247 ms - 659[39m
[info] [35m[HTTP][39m [90m[39m
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (6 by maintainers)
Top Results From Across the Web
Unable to launch WebDriverAgent because of xcodebuild failure
An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent because of xcodebuild failure:Ā ...
Read more >Unable to launch WebDriverAgent because of xcodebuild failure
Run the below command to Open the WebDriverAgent using Xcode. open /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/Ā ...
Read more >Error: Unable to launch WebDriverAgent because of ...
Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device. ... xcodebuild error message: . MakeĀ ......
Read more >Xcode 12.0.1 : Unable to launch WebDriverAgent because of ...
[debug] [simctl] W3C Encountered internal error running command: Error: Unable to launch WebDriverAgent because of xcodebuild failure:Ā ...
Read more >Appium error [resolved] - Unable to launch WebDriverAgent ...
The above error is due to WebDriverAgent is not installed on your real device or simulator connected to run the appium tests. The...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I hope the error message will be more helpful after https://github.com/appium/node-teen_process/pull/55 is merged
š¤¦š» Thatās it. The bootstrapPath points to a directory that doesnāt exist. The
/WebDriverAgent
at the end is wrong. Must be a copy/paste error from our internal Wiki which still had old paths in the example code. And to top it off, I kept changing only the first bit of the path when trying out different paths. Ugh.The error message totally threw me off & had me looking in all the wrong directions.
Thanks for pointing that out! Really appreciate your help ā¤ļø