Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode Error 70 when building on latest MacOS & iOS #737

Open
myfatduck-sync opened this issue Sep 25, 2024 · 5 comments
Open

Xcode Error 70 when building on latest MacOS & iOS #737

myfatduck-sync opened this issue Sep 25, 2024 · 5 comments
Labels

Comments

@myfatduck-sync
Copy link

myfatduck-sync commented Sep 25, 2024

I keep running into an xcode 70 error when running appium with WebDriverAgent.

Xcode error when running pytests
E       selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent. Original error: xcodebuild failed with code 70. This usually indicates an issue with the local Xcode setup or WebDriverAgent project configuration or the driver-to-platform version mismatch. Consider setting 'showXcodeLog' capability to true in order to check the Appium server log for build-related error messages.. Make sure you follow the tutorial at https://appium.github.io/appium-xcuitest-driver/latest/preparation/real-device-config/
E       Stacktrace:
E       UnknownError: An unknown server-side error occurred while processing the command. Original error: Unable to launch WebDriverAgent. Original error: xcodebuild failed with code 70. This usually indicates an issue with the local Xcode setup or WebDriverAgent project configuration or the driver-to-platform version mismatch. Consider setting 'showXcodeLog' capability to true in order to check the Appium server log for build-related error messages.. Make sure you follow the tutorial at https://appium.github.io/appium-xcuitest-driver/latest/preparation/real-device-config/
E           at getResponseForW3CError (/Users/myfatduck/.nvm/versions/node/v22.3.0/lib/node_modules/appium/node_modules/@appium/base-driver/lib/protocol/errors.js:1145:9)
E           at asyncHandler (/Users/myfatduck/.nvm/versions/node/v22.3.0/lib/node_modules/appium/node_modules/@appium/base-driver/lib/protocol/protocol.js:485:57)
E           at runNextTicks (node:internal/process/task_queues:60:5)
E           at processImmediate (node:internal/timers:449:9)
E           at process.callbackTrampoline (node:internal/async_hooks:130:17)

venv/lib/python3.12/site-packages/selenium/webdriver/remote/errorhandler.py:229: WebDriverException
Appium server logs
[Appium] Welcome to Appium v2.11.4
[Appium] The autodetected Appium home path: /Users/myfatduck/.appium
[Appium] Attempting to load driver xcuitest...
[Appium] Attempting to load driver flutter...
[Appium] Requiring driver at /Users/myfatduck/.appium/node_modules/appium-xcuitest-driver/build/index.js
[Appium] Requiring driver at /Users/myfatduck/.appium/node_modules/appium-flutter-driver/build/lib/driver.js
[Appium] XCUITestDriver has been successfully loaded in 1.444s
[Appium] FlutterDriver has been successfully loaded in 1.445s
[Appium] Appium REST http interface listener started on http://0.0.0.0:4723
[Appium] You can provide the following URLs in your client code to connect to this server:
	http://127.0.0.1:4723/ (only accessible from the same host)
	http://10.10.137.128:4723/
	http://192.168.64.1:4723/
	http://169.254.104.69:4723/
[Appium] Available drivers:
[Appium]   - [email protected] (automationName 'XCUITest')
[Appium]   - [email protected] (automationName 'Flutter')
[Appium] No plugins have been installed. Use the "appium plugin" command to install the one(s) you want to use.
[HTTP] Request idempotency key: 225d5517-3484-4a05-8abe-e28adec76965
[HTTP] --> POST /session {"capabilities":{"firstMatch":[{}],"alwaysMatch":{"appium:automationName":"Flutter","platformName":"ios","appium:platformVersion":"17.5.1","appium:deviceName":"Julian's iPad","appium:bundleId":"com.testing.myapp","appium:udid":"00008103-000230A001D1001E","appium:xcodeSigningId":"Apple Development","appium:xcodeOrgId":"xcodeOrgId","appium:updatedWDABundleId":"com.testing.WebDriverAgentRunner","appium:autoAcceptAlerts":"true"}}}
[AppiumDriver@65ab] Calling AppiumDriver.createSession() with args: [null,null,{"firstMatch":[{}],"alwaysMatch":{"appium:automationName":"Flutter","platformName":"ios","appium:platformVersion":"17.5.1","appium:deviceName":"Julian's iPad","appium:bundleId":"com.testing.myapp","appium:udid":"00008103-000230A001D1001E","appium:xcodeSigningId":"Apple Development","appium:xcodeOrgId":"xcodeOrgId","appium:updatedWDABundleId":"com.testing.WebDriverAgentRunner","appium:autoAcceptAlerts":"true"}}]
[AppiumDriver@65ab] Event 'newSessionRequested' logged at 1727295306559 (16:15:06 GMT-0400 (Eastern Daylight Time))
[Appium] Attempting to find matching driver for automationName 'Flutter' and platformName 'ios'
[Appium] The 'flutter' driver was installed and matched caps.
[Appium] Will require it at /Users/myfatduck/.appium/node_modules/appium-flutter-driver
[Appium] Requiring driver at /Users/myfatduck/.appium/node_modules/appium-flutter-driver/build/lib/driver.js
[AppiumDriver@65ab] Appium v2.11.4 creating new FlutterDriver (v2.9.2) session
[AppiumDriver@65ab] Checking BaseDriver versions for Appium and FlutterDriver
[AppiumDriver@65ab] Appium's BaseDriver version is 9.11.4
[AppiumDriver@65ab] FlutterDriver's BaseDriver version is 9.11.4
[FlutterDriver@95d6]
[FlutterDriver@95d6] Creating session with W3C capabilities: {
  "alwaysMatch": {
    "platformName": "ios",
    "appium:automationName": "Flutter",
    "appium:platformVersion": "17.5.1",
    "appium:deviceName": "Julian's iPad",
    "appium:bundleId": "com.testing.myapp",
    "appium:udid": "00008103-000230A001D1001E",
    "appium:xcodeSigningId": "Apple Development",
    "appium:xcodeOrgId": "xcodeOrgId",
    "appium:updatedWDABundleId": "com.testing.WebDriverAgentRunner",
    "appium:autoAcceptAlerts": "true"
  },
  "firstMatch": [
    {}
  ]
}
[FlutterDriver@95d6] The following provided capabilities were not recognized by this driver:
[FlutterDriver@95d6]   deviceName
[FlutterDriver@95d6]   bundleId
[FlutterDriver@95d6]   xcodeSigningId
[FlutterDriver@95d6]   xcodeOrgId
[FlutterDriver@95d6]   updatedWDABundleId
[FlutterDriver@95d6]   autoAcceptAlerts
[994e3478][FlutterDriver@95d6] Session created with session id: 994e3478-c38a-4bcc-a177-fe20c2c25520
[994e3478][FlutterDriver@95d6] Starting an IOS proxy session
[994e3478][XCUITestDriver@8ff3]
[994e3478][XCUITestDriver@8ff3] Creating session with W3C capabilities: {
  "alwaysMatch": {
    "platformName": "ios",
    "appium:automationName": "Flutter",
    "appium:platformVersion": "17.5.1",
    "appium:deviceName": "Julian's iPad",
    "appium:bundleId": "com.testing.myapp",
    "appium:udid": "00008103-000230A001D1001E",
    "appium:xcodeSigningId": "Apple Development",
    "appium:xcodeOrgId": "xcodeOrgId",
    "appium:updatedWDABundleId": "com.testing.WebDriverAgentRunner",
    "appium:autoAcceptAlerts": "true"
  },
  "firstMatch": [
    {}
  ]
}
[994e3478][XCUITestDriver@8ff3] Capability 'autoAcceptAlerts' changed from string to boolean. This may cause unexpected behavior
[f1f3041c][XCUITestDriver@8ff3] Session created with session id: f1f3041c-8fba-43de-8ef9-5afb3ce0275e
[f1f3041c][XCUITest] Current user: 'myfatduck'
[f1f3041c][XCUITestDriver@8ff3] Available real devices: 00008103-000230A001D1001E
[f1f3041c][XCUITestDriver@8ff3] Creating iDevice object with udid '00008103-000230A001D1001E'
[f1f3041c][XCUITestDriver@8ff3] Determining device to run tests on: udid: '00008103-000230A001D1001E', real device: true
[f1f3041c][XCUITestDriver@8ff3] Normalized platformVersion capability value '17.5.1' to '17.5'
[f1f3041c][XCUITestDriver@8ff3] Event 'xcodeDetailsRetrieved' logged at 1727295306601 (16:15:06 GMT-0400 (Eastern Daylight Time))
[f1f3041c][XCUITestDriver@8ff3] Event 'appConfigured' logged at 1727295306602 (16:15:06 GMT-0400 (Eastern Daylight Time))
[f1f3041c][XCUITestDriver@8ff3] Event 'resetStarted' logged at 1727295306602 (16:15:06 GMT-0400 (Eastern Daylight Time))
[f1f3041c][XCUITestDriver@8ff3] Reset: running ios real device reset flow
[f1f3041c][XCUITestDriver@8ff3] Event 'resetComplete' logged at 1727295306602 (16:15:06 GMT-0400 (Eastern Daylight Time))
[f1f3041c][XCUITestDriver@8ff3] Using WDA path: '/Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent'
[f1f3041c][XCUITestDriver@8ff3] Using WDA agent: '/Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj'
[f1f3041c][XCUITestDriver@8ff3] The pyidevice tool is not present in PATH. Skipping crash logs collection for real devices.
[f1f3041c][XCUITestDriver@8ff3] Event 'logCaptureStarted' logged at 1727295306748 (16:15:06 GMT-0400 (Eastern Daylight Time))
[f1f3041c][XCUITestDriver@8ff3] Setting up real device
[f1f3041c][XCUITestDriver@8ff3] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found
[f1f3041c][DevCon Factory] Requesting connection for device 00008103-000230A001D1001E on local port 8100, device port 8100
[f1f3041c][DevCon Factory] Cached connections count: 0
[f1f3041c][DevCon Factory] Successfully requested the connection for 00008103-000230A001D1001E:8100
[f1f3041c][XCUITestDriver@8ff3] Parsed BUILD_DIR configuration value: '/Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/build'
[f1f3041c][XCUITestDriver@8ff3] Got derived data root: '/Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules'
[f1f3041c][XCUITestDriver@8ff3] Starting WebDriverAgent initialization with the synchronization key '/Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules'
[f1f3041c][WD Proxy] Matched '/status' to command name 'getStatus'
[f1f3041c][WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[f1f3041c][iProxy@00008103:8100] Connection was refused to port 8100
[f1f3041c][WD Proxy] socket hang up
[f1f3041c][XCUITestDriver@8ff3] WDA is not listening at 'http://127.0.0.1:8100/'. Original error:: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: socket hang up
[f1f3041c][XCUITestDriver@8ff3] WDA is currently not running. There is nothing to cache
[f1f3041c][XCUITestDriver@8ff3] Trying to start WebDriverAgent 1 times with 10000ms interval
[f1f3041c][XCUITestDriver@8ff3] These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities
[f1f3041c][XCUITestDriver@8ff3] Event 'wdaStartAttempted' logged at 1727295307478 (16:15:07 GMT-0400 (Eastern Daylight Time))
[f1f3041c][XCUITestDriver@8ff3] Launching WebDriverAgent on the device
[f1f3041c][XCUITestDriver@8ff3] There is no need to perform the project cleanup. A fresh install has been detected
[f1f3041c][WebDriverAgent] Killing running processes 'xcodebuild.*00008103-000230A001D1001E' for the device 00008103-000230A001D1001E...
[f1f3041c][WebDriverAgent] 'pgrep -if xcodebuild.*00008103-000230A001D1001E' didn't detect any matching processes. Return code: 1
[f1f3041c][WebDriverAgent] Successfully updated '/Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj/project.pbxproj' with bundle id 'com.testing.WebDriverAgentRunner'
[f1f3041c][XCUITestDriver@8ff3] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules -destination id=00008103-000230A001D1001E IPHONEOS_DEPLOYMENT_TARGET=17.5 DEVELOPMENT_TEAM=xcodeOrgId CODE_SIGN_IDENTITY=Apple Development GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO' in directory '/Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent'
[f1f3041c][XCUITestDriver@8ff3] Output from xcodebuild will only be logged if any errors are present there. To change this, use 'showXcodeLog' desired capability
[f1f3041c][XCUITestDriver@8ff3] Waiting up to 60000ms for WebDriverAgent to start
[f1f3041c][XCUITestDriver@8ff3] Matched '/status' to command name 'getStatus'
[f1f3041c][XCUITestDriver@8ff3] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[f1f3041c][iProxy@00008103:8100] Connection was refused to port 8100
[f1f3041c][XCUITestDriver@8ff3] socket hang up
[f1f3041c][XCUITestDriver@8ff3] Matched '/status' to command name 'getStatus'
[f1f3041c][XCUITestDriver@8ff3] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[f1f3041c][iProxy@00008103:8100] Connection was refused to port 8100
[f1f3041c][XCUITestDriver@8ff3] socket hang up
[f1f3041c][XCUITestDriver@8ff3] Matched '/status' to command name 'getStatus'
[f1f3041c][XCUITestDriver@8ff3] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[f1f3041c][iProxy@00008103:8100] Connection was refused to port 8100
[f1f3041c][XCUITestDriver@8ff3] socket hang up
[f1f3041c][XCUITestDriver@8ff3] Matched '/status' to command name 'getStatus'
[f1f3041c][XCUITestDriver@8ff3] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[f1f3041c][iProxy@00008103:8100] Connection was refused to port 8100
[f1f3041c][XCUITestDriver@8ff3] socket hang up
[f1f3041c][XCUITestDriver@8ff3] Matched '/status' to command name 'getStatus'
[f1f3041c][XCUITestDriver@8ff3] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[f1f3041c][iProxy@00008103:8100] Connection was refused to port 8100
[f1f3041c][XCUITestDriver@8ff3] socket hang up
[f1f3041c][XCUITestDriver@8ff3] Matched '/status' to command name 'getStatus'
[f1f3041c][XCUITestDriver@8ff3] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[f1f3041c][iProxy@00008103:8100] Connection was refused to port 8100
[f1f3041c][XCUITestDriver@8ff3] socket hang up
[f1f3041c][XCUITestDriver@8ff3] Matched '/status' to command name 'getStatus'
[f1f3041c][XCUITestDriver@8ff3] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[f1f3041c][iProxy@00008103:8100] Connection was refused to port 8100
[f1f3041c][XCUITestDriver@8ff3] socket hang up
[f1f3041c][XCUITestDriver@8ff3] Matched '/status' to command name 'getStatus'
[f1f3041c][XCUITestDriver@8ff3] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[f1f3041c][iProxy@00008103:8100] Connection was refused to port 8100
[f1f3041c][XCUITestDriver@8ff3] socket hang up
[f1f3041c][XCUITestDriver@8ff3] Matched '/status' to command name 'getStatus'
[f1f3041c][XCUITestDriver@8ff3] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[f1f3041c][iProxy@00008103:8100] Connection was refused to port 8100
[f1f3041c][XCUITestDriver@8ff3] socket hang up
[f1f3041c][XCUITestDriver@8ff3] Matched '/status' to command name 'getStatus'
[f1f3041c][XCUITestDriver@8ff3] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[f1f3041c][iProxy@00008103:8100] Connection was refused to port 8100
[f1f3041c][XCUITestDriver@8ff3] socket hang up
[f1f3041c][XCUITestDriver@8ff3] Matched '/status' to command name 'getStatus'
[f1f3041c][XCUITestDriver@8ff3] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[f1f3041c][iProxy@00008103:8100] Connection was refused to port 8100
[f1f3041c][XCUITestDriver@8ff3] socket hang up
[f1f3041c][XCUITestDriver@8ff3] Matched '/status' to command name 'getStatus'
[f1f3041c][XCUITestDriver@8ff3] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[f1f3041c][iProxy@00008103:8100] Connection was refused to port 8100
[f1f3041c][XCUITestDriver@8ff3] socket hang up
[f1f3041c][Xcode] xcodebuild exited with code '70' and signal 'null'
[f1f3041c][XCUITestDriver@8ff3] Event 'wdaStartFailed' logged at 1727295319673 (16:15:19 GMT-0400 (Eastern Daylight Time))
[f1f3041c][XCUITestDriver@8ff3] Error: xcodebuild failed with code 70. This usually indicates an issue with the local Xcode setup or WebDriverAgent project configuration or the driver-to-platform version mismatch. Consider setting 'showXcodeLog' capability to true in order to check the Appium server log for build-related error messages.
    at SubProcess.<anonymous> (/Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/lib/xcodebuild.js:384:25)
    at Object.onceWrapper (node:events:635:26)
    at SubProcess.emit (node:events:520:28)
    at ChildProcess.<anonymous> (/Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/teen_process/lib/subprocess.js:201:14)
    at ChildProcess.emit (node:events:520:28)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:294:12)
    at Process.callbackTrampoline (node:internal/async_hooks:130:17)
[f1f3041c][XCUITestDriver@8ff3] Unable to launch WebDriverAgent. Original error: xcodebuild failed with code 70. This usually indicates an issue with the local Xcode setup or WebDriverAgent project configuration or the driver-to-platform version mismatch. Consider setting 'showXcodeLog' capability to true in order to check the Appium server log for build-related error messages.. Make sure you follow the tutorial at https://appium.github.io/appium-xcuitest-driver/latest/preparation/real-device-config/
[f1f3041c][XCUITestDriver@8ff3] Quitting and uninstalling WebDriverAgent
[f1f3041c][XCUITestDriver@8ff3] Shutting down sub-processes
[f1f3041c][WebDriverAgent] Successfully reset '/Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj/project.pbxproj' with bundle id 'com.facebook.WebDriverAgentRunner'
[f1f3041c][XCUITestDriver@8ff3] No WDAs on the device.
[f1f3041c][XCUITestDriver@8ff3] {}
[f1f3041c][DevCon Factory] Releasing connections for 00008103-000230A001D1001E device on any port number
[f1f3041c][DevCon Factory] Found cached connections to release: ["00008103-000230A001D1001E:8100"]
[f1f3041c][DevCon Factory] Releasing the listener for '00008103-000230A001D1001E:8100'
[f1f3041c][iProxy@00008103:8100] Closing the connection
[f1f3041c][DevCon Factory] Cached connections count: 0
[f1f3041c][XCUITestDriver@8ff3] Not clearing log files. Use `clearSystemFiles` capability to turn on.
[f1f3041c][FlutterDriver@95d6] Deleting Flutter Driver session
[f1f3041c][FlutterDriver@95d6] Cleanup the port forward
[f1f3041c][iProxy@00008103:8100] The connection has been closed
[f1f3041c][AppiumDriver@65ab] Event 'newSessionStarted' logged at 1727295319849 (16:15:19 GMT-0400 (Eastern Daylight Time))
[f1f3041c][AppiumDriver@65ab] Encountered internal error running command: Error: Unable to launch WebDriverAgent. Original error: xcodebuild failed with code 70. This usually indicates an issue with the local Xcode setup or WebDriverAgent project configuration or the driver-to-platform version mismatch. Consider setting 'showXcodeLog' capability to true in order to check the Appium server log for build-related error messages.. Make sure you follow the tutorial at https://appium.github.io/appium-xcuitest-driver/latest/preparation/real-device-config/
    at quitAndUninstall (/Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/lib/driver.js:788:15)
    at /Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/lib/driver.js:858:13
    at wrapped (/Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:93:13)
    at retry (/Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:66:13)
    at retryInterval (/Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:103:10)
    at /Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/lib/driver.js:823:7
[f1f3041c][HTTP] <-- POST /session 500 13307 ms - 1714
[HTTP] Request idempotency key: 8d9e7d59-ec05-495b-b599-5d9921876fb6
[HTTP] --> POST /session {"capabilities":{"firstMatch":[{}],"alwaysMatch":{"appium:automationName":"Flutter","platformName":"ios","appium:platformVersion":"17.5.1","appium:deviceName":"Julian's iPad","appium:bundleId":"com.testing.myapp","appium:udid":"00008103-000230A001D1001E","appium:xcodeSigningId":"Apple Development","appium:xcodeOrgId":"xcodeOrgId","appium:updatedWDABundleId":"com.testing.WebDriverAgentRunner","appium:autoAcceptAlerts":"true"}}}
[AppiumDriver@65ab] Calling AppiumDriver.createSession() with args: [null,null,{"firstMatch":[{}],"alwaysMatch":{"appium:automationName":"Flutter","platformName":"ios","appium:platformVersion":"17.5.1","appium:deviceName":"Julian's iPad","appium:bundleId":"com.testing.myapp","appium:udid":"00008103-000230A001D1001E","appium:xcodeSigningId":"Apple Development","appium:xcodeOrgId":"xcodeOrgId","appium:updatedWDABundleId":"com.testing.WebDriverAgentRunner","appium:autoAcceptAlerts":"true"}}]
[AppiumDriver@65ab] Event 'newSessionRequested' logged at 1727295319956 (16:15:19 GMT-0400 (Eastern Daylight Time))
[Appium] Attempting to find matching driver for automationName 'Flutter' and platformName 'ios'
[Appium] The 'flutter' driver was installed and matched caps.
[Appium] Will require it at /Users/myfatduck/.appium/node_modules/appium-flutter-driver
[Appium] Requiring driver at /Users/myfatduck/.appium/node_modules/appium-flutter-driver/build/lib/driver.js
[AppiumDriver@65ab] Appium v2.11.4 creating new FlutterDriver (v2.9.2) session
[AppiumDriver@65ab] Checking BaseDriver versions for Appium and FlutterDriver
[AppiumDriver@65ab] Appium's BaseDriver version is 9.11.4
[AppiumDriver@65ab] FlutterDriver's BaseDriver version is 9.11.4
[FlutterDriver@82b2]
[FlutterDriver@82b2] Creating session with W3C capabilities: {
  "alwaysMatch": {
    "platformName": "ios",
    "appium:automationName": "Flutter",
    "appium:platformVersion": "17.5.1",
    "appium:deviceName": "Julian's iPad",
    "appium:bundleId": "com.testing.myapp",
    "appium:udid": "00008103-000230A001D1001E",
    "appium:xcodeSigningId": "Apple Development",
    "appium:xcodeOrgId": "xcodeOrgId",
    "appium:updatedWDABundleId": "com.testing.WebDriverAgentRunner",
    "appium:autoAcceptAlerts": "true"
  },
  "firstMatch": [
    {}
  ]
}
[FlutterDriver@82b2] The following provided capabilities were not recognized by this driver:
[FlutterDriver@82b2]   deviceName
[FlutterDriver@82b2]   bundleId
[FlutterDriver@82b2]   xcodeSigningId
[FlutterDriver@82b2]   xcodeOrgId
[FlutterDriver@82b2]   updatedWDABundleId
[FlutterDriver@82b2]   autoAcceptAlerts
[5ac34796][FlutterDriver@82b2] Session created with session id: 5ac34796-364f-4d33-8e07-e870ae2d4c73
[5ac34796][FlutterDriver@82b2] Starting an IOS proxy session
[5ac34796][XCUITestDriver@c5e1]
[5ac34796][XCUITestDriver@c5e1] Creating session with W3C capabilities: {
  "alwaysMatch": {
    "platformName": "ios",
    "appium:automationName": "Flutter",
    "appium:platformVersion": "17.5.1",
    "appium:deviceName": "Julian's iPad",
    "appium:bundleId": "com.testing.myapp",
    "appium:udid": "00008103-000230A001D1001E",
    "appium:xcodeSigningId": "Apple Development",
    "appium:xcodeOrgId": "xcodeOrgId",
    "appium:updatedWDABundleId": "com.testing.WebDriverAgentRunner",
    "appium:autoAcceptAlerts": "true"
  },
  "firstMatch": [
    {}
  ]
}
[5ac34796][XCUITestDriver@c5e1] Capability 'autoAcceptAlerts' changed from string to boolean. This may cause unexpected behavior
[6ebf29ef][XCUITestDriver@c5e1] Session created with session id: 6ebf29ef-18a7-402d-ac79-f49ccacd4fe4
[6ebf29ef][XCUITest] Current user: 'myfatduck'
[6ebf29ef][XCUITestDriver@c5e1] Available real devices: 00008103-000230A001D1001E
[6ebf29ef][XCUITestDriver@c5e1] Creating iDevice object with udid '00008103-000230A001D1001E'
[6ebf29ef][XCUITestDriver@c5e1] Determining device to run tests on: udid: '00008103-000230A001D1001E', real device: true
[6ebf29ef][XCUITestDriver@c5e1] Normalized platformVersion capability value '17.5.1' to '17.5'
[6ebf29ef][XCUITestDriver@c5e1] Event 'xcodeDetailsRetrieved' logged at 1727295319992 (16:15:19 GMT-0400 (Eastern Daylight Time))
[6ebf29ef][XCUITestDriver@c5e1] Event 'appConfigured' logged at 1727295319992 (16:15:19 GMT-0400 (Eastern Daylight Time))
[6ebf29ef][XCUITestDriver@c5e1] Event 'resetStarted' logged at 1727295319992 (16:15:19 GMT-0400 (Eastern Daylight Time))
[6ebf29ef][XCUITestDriver@c5e1] Reset: running ios real device reset flow
[6ebf29ef][XCUITestDriver@c5e1] Event 'resetComplete' logged at 1727295319992 (16:15:19 GMT-0400 (Eastern Daylight Time))
[6ebf29ef][XCUITestDriver@c5e1] Using WDA path: '/Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent'
[6ebf29ef][XCUITestDriver@c5e1] Using WDA agent: '/Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj'
[6ebf29ef][XCUITestDriver@c5e1] The pyidevice tool is not present in PATH. Skipping crash logs collection for real devices.
[6ebf29ef][XCUITestDriver@c5e1] Event 'logCaptureStarted' logged at 1727295320114 (16:15:20 GMT-0400 (Eastern Daylight Time))
[6ebf29ef][XCUITestDriver@c5e1] Setting up real device
[f1f3041c][XCUITestDriver@8ff3] Matched '/status' to command name 'getStatus'
[f1f3041c][XCUITestDriver@8ff3] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[f1f3041c][XCUITestDriver@8ff3] connect ECONNREFUSED 127.0.0.1:8100
[6ebf29ef][XCUITestDriver@c5e1] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found
[6ebf29ef][DevCon Factory] Requesting connection for device 00008103-000230A001D1001E on local port 8100, device port 8100
[6ebf29ef][DevCon Factory] Cached connections count: 0
[6ebf29ef][DevCon Factory] Successfully requested the connection for 00008103-000230A001D1001E:8100
[6ebf29ef][XCUITestDriver@c5e1] Parsed BUILD_DIR configuration value: '/Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/build'
[6ebf29ef][XCUITestDriver@c5e1] Got derived data root: '/Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules'
[6ebf29ef][XCUITestDriver@c5e1] Starting WebDriverAgent initialization with the synchronization key '/Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules'
[6ebf29ef][WD Proxy] Matched '/status' to command name 'getStatus'
[6ebf29ef][WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[6ebf29ef][iProxy@00008103:8100] Connection was refused to port 8100
[6ebf29ef][WD Proxy] socket hang up
[6ebf29ef][XCUITestDriver@c5e1] WDA is not listening at 'http://127.0.0.1:8100/'. Original error:: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: socket hang up
[6ebf29ef][XCUITestDriver@c5e1] WDA is currently not running. There is nothing to cache
[6ebf29ef][XCUITestDriver@c5e1] Trying to start WebDriverAgent 1 times with 10000ms interval
[6ebf29ef][XCUITestDriver@c5e1] These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities
[6ebf29ef][XCUITestDriver@c5e1] Event 'wdaStartAttempted' logged at 1727295320842 (16:15:20 GMT-0400 (Eastern Daylight Time))
[6ebf29ef][XCUITestDriver@c5e1] Launching WebDriverAgent on the device
[6ebf29ef][XCUITestDriver@c5e1] There is no need to perform the project cleanup. A fresh install has been detected
[6ebf29ef][WebDriverAgent] Killing running processes 'xcodebuild.*00008103-000230A001D1001E' for the device 00008103-000230A001D1001E...
[6ebf29ef][WebDriverAgent] 'pgrep -if xcodebuild.*00008103-000230A001D1001E' didn't detect any matching processes. Return code: 1
[6ebf29ef][WebDriverAgent] Successfully updated '/Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj/project.pbxproj' with bundle id 'com.testing.WebDriverAgentRunner'
[6ebf29ef][XCUITestDriver@c5e1] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules -destination id=00008103-000230A001D1001E IPHONEOS_DEPLOYMENT_TARGET=17.5 DEVELOPMENT_TEAM=xcodeOrgId CODE_SIGN_IDENTITY=Apple Development GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO' in directory '/Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent'
[6ebf29ef][XCUITestDriver@c5e1] Output from xcodebuild will only be logged if any errors are present there. To change this, use 'showXcodeLog' desired capability
[f1f3041c][XCUITestDriver@8ff3] Matched '/status' to command name 'getStatus'
[f1f3041c][XCUITestDriver@8ff3] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[6ebf29ef][iProxy@00008103:8100] Connection was refused to port 8100
[f1f3041c][XCUITestDriver@8ff3] socket hang up
[6ebf29ef][XCUITestDriver@c5e1] Waiting up to 60000ms for WebDriverAgent to start
[6ebf29ef][XCUITestDriver@c5e1] Matched '/status' to command name 'getStatus'
[6ebf29ef][XCUITestDriver@c5e1] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[6ebf29ef][iProxy@00008103:8100] Connection was refused to port 8100
[6ebf29ef][XCUITestDriver@c5e1] socket hang up
[f1f3041c][XCUITestDriver@8ff3] Matched '/status' to command name 'getStatus'
[f1f3041c][XCUITestDriver@8ff3] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[6ebf29ef][iProxy@00008103:8100] Connection was refused to port 8100
[f1f3041c][XCUITestDriver@8ff3] socket hang up
[6ebf29ef][XCUITestDriver@c5e1] Matched '/status' to command name 'getStatus'
[6ebf29ef][XCUITestDriver@c5e1] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[6ebf29ef][iProxy@00008103:8100] Connection was refused to port 8100
[6ebf29ef][XCUITestDriver@c5e1] socket hang up
[f1f3041c][XCUITestDriver@8ff3] Matched '/status' to command name 'getStatus'
[f1f3041c][XCUITestDriver@8ff3] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[6ebf29ef][iProxy@00008103:8100] Connection was refused to port 8100
[f1f3041c][XCUITestDriver@8ff3] socket hang up
[6ebf29ef][XCUITestDriver@c5e1] Matched '/status' to command name 'getStatus'
[6ebf29ef][XCUITestDriver@c5e1] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[6ebf29ef][iProxy@00008103:8100] Connection was refused to port 8100
[6ebf29ef][XCUITestDriver@c5e1] socket hang up
[f1f3041c][XCUITestDriver@8ff3] Matched '/status' to command name 'getStatus'
[f1f3041c][XCUITestDriver@8ff3] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[6ebf29ef][iProxy@00008103:8100] Connection was refused to port 8100
[f1f3041c][XCUITestDriver@8ff3] socket hang up
[6ebf29ef][XCUITestDriver@c5e1] Matched '/status' to command name 'getStatus'
[6ebf29ef][XCUITestDriver@c5e1] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[6ebf29ef][iProxy@00008103:8100] Connection was refused to port 8100
[6ebf29ef][XCUITestDriver@c5e1] socket hang up
[f1f3041c][XCUITestDriver@8ff3] Matched '/status' to command name 'getStatus'
[f1f3041c][XCUITestDriver@8ff3] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[6ebf29ef][iProxy@00008103:8100] Connection was refused to port 8100
[f1f3041c][XCUITestDriver@8ff3] socket hang up
[6ebf29ef][XCUITestDriver@c5e1] Matched '/status' to command name 'getStatus'
[6ebf29ef][XCUITestDriver@c5e1] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[6ebf29ef][iProxy@00008103:8100] Connection was refused to port 8100
[6ebf29ef][XCUITestDriver@c5e1] socket hang up
[f1f3041c][XCUITestDriver@8ff3] Matched '/status' to command name 'getStatus'
[f1f3041c][XCUITestDriver@8ff3] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[6ebf29ef][iProxy@00008103:8100] Connection was refused to port 8100
[f1f3041c][XCUITestDriver@8ff3] socket hang up
[6ebf29ef][XCUITestDriver@c5e1] Matched '/status' to command name 'getStatus'
[6ebf29ef][XCUITestDriver@c5e1] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[6ebf29ef][iProxy@00008103:8100] Connection was refused to port 8100
[6ebf29ef][XCUITestDriver@c5e1] socket hang up
[f1f3041c][XCUITestDriver@8ff3] Matched '/status' to command name 'getStatus'
[f1f3041c][XCUITestDriver@8ff3] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[6ebf29ef][iProxy@00008103:8100] Connection was refused to port 8100
[f1f3041c][XCUITestDriver@8ff3] socket hang up
[6ebf29ef][XCUITestDriver@c5e1] Matched '/status' to command name 'getStatus'
[6ebf29ef][XCUITestDriver@c5e1] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[6ebf29ef][iProxy@00008103:8100] Connection was refused to port 8100
[6ebf29ef][XCUITestDriver@c5e1] socket hang up
[f1f3041c][XCUITestDriver@8ff3] Matched '/status' to command name 'getStatus'
[f1f3041c][XCUITestDriver@8ff3] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[6ebf29ef][iProxy@00008103:8100] Connection was refused to port 8100
[f1f3041c][XCUITestDriver@8ff3] socket hang up
[6ebf29ef][XCUITestDriver@c5e1] Matched '/status' to command name 'getStatus'
[6ebf29ef][XCUITestDriver@c5e1] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[6ebf29ef][iProxy@00008103:8100] Connection was refused to port 8100
[6ebf29ef][XCUITestDriver@c5e1] socket hang up
[f1f3041c][XCUITestDriver@8ff3] Matched '/status' to command name 'getStatus'
[f1f3041c][XCUITestDriver@8ff3] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[6ebf29ef][iProxy@00008103:8100] Connection was refused to port 8100
[f1f3041c][XCUITestDriver@8ff3] socket hang up
[6ebf29ef][XCUITestDriver@c5e1] Matched '/status' to command name 'getStatus'
[6ebf29ef][XCUITestDriver@c5e1] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[6ebf29ef][iProxy@00008103:8100] Connection was refused to port 8100
[6ebf29ef][XCUITestDriver@c5e1] socket hang up
[f1f3041c][XCUITestDriver@8ff3] Matched '/status' to command name 'getStatus'
[f1f3041c][XCUITestDriver@8ff3] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[6ebf29ef][iProxy@00008103:8100] Connection was refused to port 8100
[f1f3041c][XCUITestDriver@8ff3] socket hang up
[6ebf29ef][XCUITestDriver@c5e1] Matched '/status' to command name 'getStatus'
[6ebf29ef][XCUITestDriver@c5e1] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[6ebf29ef][iProxy@00008103:8100] Connection was refused to port 8100
[6ebf29ef][XCUITestDriver@c5e1] socket hang up
[f1f3041c][XCUITestDriver@8ff3] Matched '/status' to command name 'getStatus'
[f1f3041c][XCUITestDriver@8ff3] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[6ebf29ef][iProxy@00008103:8100] Connection was refused to port 8100
[f1f3041c][XCUITestDriver@8ff3] socket hang up
[6ebf29ef][XCUITestDriver@c5e1] Matched '/status' to command name 'getStatus'
[6ebf29ef][XCUITestDriver@c5e1] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[6ebf29ef][iProxy@00008103:8100] Connection was refused to port 8100
[6ebf29ef][XCUITestDriver@c5e1] socket hang up
[6ebf29ef][Xcode] xcodebuild exited with code '70' and signal 'null'
[6ebf29ef][XCUITestDriver@c5e1] Event 'wdaStartFailed' logged at 1727295331984 (16:15:31 GMT-0400 (Eastern Daylight Time))
[6ebf29ef][XCUITestDriver@c5e1] Error: xcodebuild failed with code 70. This usually indicates an issue with the local Xcode setup or WebDriverAgent project configuration or the driver-to-platform version mismatch. Consider setting 'showXcodeLog' capability to true in order to check the Appium server log for build-related error messages.
    at SubProcess.<anonymous> (/Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/lib/xcodebuild.js:384:25)
    at Object.onceWrapper (node:events:635:26)
    at SubProcess.emit (node:events:520:28)
    at ChildProcess.<anonymous> (/Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/teen_process/lib/subprocess.js:201:14)
    at ChildProcess.emit (node:events:520:28)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:294:12)
    at Process.callbackTrampoline (node:internal/async_hooks:130:17)
[6ebf29ef][XCUITestDriver@c5e1] Unable to launch WebDriverAgent. Original error: xcodebuild failed with code 70. This usually indicates an issue with the local Xcode setup or WebDriverAgent project configuration or the driver-to-platform version mismatch. Consider setting 'showXcodeLog' capability to true in order to check the Appium server log for build-related error messages.. Make sure you follow the tutorial at https://appium.github.io/appium-xcuitest-driver/latest/preparation/real-device-config/
[6ebf29ef][XCUITestDriver@c5e1] Quitting and uninstalling WebDriverAgent
[6ebf29ef][XCUITestDriver@c5e1] Shutting down sub-processes
[6ebf29ef][WebDriverAgent] Successfully reset '/Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj/project.pbxproj' with bundle id 'com.facebook.WebDriverAgentRunner'
[6ebf29ef][XCUITestDriver@c5e1] No WDAs on the device.
[6ebf29ef][XCUITestDriver@c5e1] {}
[6ebf29ef][DevCon Factory] Releasing connections for 00008103-000230A001D1001E device on any port number
[6ebf29ef][DevCon Factory] Found cached connections to release: ["00008103-000230A001D1001E:8100"]
[6ebf29ef][DevCon Factory] Releasing the listener for '00008103-000230A001D1001E:8100'
[6ebf29ef][iProxy@00008103:8100] Closing the connection
[6ebf29ef][DevCon Factory] Cached connections count: 0
[6ebf29ef][XCUITestDriver@c5e1] Not clearing log files. Use `clearSystemFiles` capability to turn on.
[6ebf29ef][FlutterDriver@82b2] Deleting Flutter Driver session
[6ebf29ef][FlutterDriver@82b2] Cleanup the port forward
[6ebf29ef][iProxy@00008103:8100] The connection has been closed
[6ebf29ef][AppiumDriver@65ab] Event 'newSessionStarted' logged at 1727295332151 (16:15:32 GMT-0400 (Eastern Daylight Time))
[6ebf29ef][AppiumDriver@65ab] Encountered internal error running command: Error: Unable to launch WebDriverAgent. Original error: xcodebuild failed with code 70. This usually indicates an issue with the local Xcode setup or WebDriverAgent project configuration or the driver-to-platform version mismatch. Consider setting 'showXcodeLog' capability to true in order to check the Appium server log for build-related error messages.. Make sure you follow the tutorial at https://appium.github.io/appium-xcuitest-driver/latest/preparation/real-device-config/
    at quitAndUninstall (/Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/lib/driver.js:788:15)
    at /Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/lib/driver.js:858:13
    at wrapped (/Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:93:13)
    at retry (/Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:66:13)
    at retryInterval (/Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/node_modules/asyncbox/lib/asyncbox.js:103:10)
    at /Users/myfatduck/.appium/node_modules/appium-flutter-driver/node_modules/appium-xcuitest-driver/lib/driver.js:823:7
[6ebf29ef][HTTP] <-- POST /session 500 12196 ms - 1714
[f1f3041c][XCUITestDriver@8ff3] Matched '/status' to command name 'getStatus'
[f1f3041c][XCUITestDriver@8ff3] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[f1f3041c][XCUITestDriver@8ff3] connect ECONNREFUSED 127.0.0.1:8100
[6ebf29ef][XCUITestDriver@c5e1] Matched '/status' to command name 'getStatus'
[6ebf29ef][XCUITestDriver@c5e1] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[6ebf29ef][XCUITestDriver@c5e1] connect ECONNREFUSED 127.0.0.1:8100
[f1f3041c][XCUITestDriver@8ff3] Matched '/status' to command name 'getStatus'
[f1f3041c][XCUITestDriver@8ff3] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[f1f3041c][XCUITestDriver@8ff3] connect ECONNREFUSED 127.0.0.1:8100
[6ebf29ef][XCUITestDriver@c5e1] Matched '/status' to command name 'getStatus'
[6ebf29ef][XCUITestDriver@c5e1] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[6ebf29ef][XCUITestDriver@c5e1] connect ECONNREFUSED 127.0.0.1:8100
[f1f3041c][XCUITestDriver@8ff3] Matched '/status' to command name 'getStatus'
[f1f3041c][XCUITestDriver@8ff3] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[f1f3041c][XCUITestDriver@8ff3] connect ECONNREFUSED 127.0.0.1:8100
[6ebf29ef][XCUITestDriver@c5e1] Matched '/status' to command name 'getStatus'
[6ebf29ef][XCUITestDriver@c5e1] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[6ebf29ef][XCUITestDriver@c5e1] connect ECONNREFUSED 127.0.0.1:8100
[f1f3041c][XCUITestDriver@8ff3] Matched '/status' to command name 'getStatus'
[f1f3041c][XCUITestDriver@8ff3] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[f1f3041c][XCUITestDriver@8ff3] connect ECONNREFUSED 127.0.0.1:8100
[6ebf29ef][XCUITestDriver@c5e1] Matched '/status' to command name 'getStatus'
[6ebf29ef][XCUITestDriver@c5e1] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[6ebf29ef][XCUITestDriver@c5e1] connect ECONNREFUSED 127.0.0.1:8100
[f1f3041c][XCUITestDriver@8ff3] Matched '/status' to command name 'getStatus'
[f1f3041c][XCUITestDriver@8ff3] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[f1f3041c][XCUITestDriver@8ff3] connect ECONNREFUSED 127.0.0.1:8100
[6ebf29ef][XCUITestDriver@c5e1] Matched '/status' to command name 'getStatus'
[6ebf29ef][XCUITestDriver@c5e1] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[6ebf29ef][XCUITestDriver@c5e1] connect ECONNREFUSED 127.0.0.1:8100
[f1f3041c][XCUITestDriver@8ff3] Matched '/status' to command name 'getStatus'
[f1f3041c][XCUITestDriver@8ff3] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[f1f3041c][XCUITestDriver@8ff3] connect ECONNREFUSED 127.0.0.1:8100
[6ebf29ef][XCUITestDriver@c5e1] Matched '/status' to command name 'getStatus'
[6ebf29ef][XCUITestDriver@c5e1] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[6ebf29ef][XCUITestDriver@c5e1] connect ECONNREFUSED 127.0.0.1:8100
[f1f3041c][XCUITestDriver@8ff3] Matched '/status' to command name 'getStatus'
[f1f3041c][XCUITestDriver@8ff3] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[f1f3041c][XCUITestDriver@8ff3] connect ECONNREFUSED 127.0.0.1:8100
[6ebf29ef][XCUITestDriver@c5e1] Matched '/status' to command name 'getStatus'
[6ebf29ef][XCUITestDriver@c5e1] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[6ebf29ef][XCUITestDriver@c5e1] connect ECONNREFUSED 127.0.0.1:8100
[f1f3041c][XCUITestDriver@8ff3] Matched '/status' to command name 'getStatus'
[f1f3041c][XCUITestDriver@8ff3] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[f1f3041c][XCUITestDriver@8ff3] connect ECONNREFUSED 127.0.0.1:8100
[6ebf29ef][XCUITestDriver@c5e1] Matched '/status' to command name 'getStatus'
[6ebf29ef][XCUITestDriver@c5e1] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[6ebf29ef][XCUITestDriver@c5e1] connect ECONNREFUSED 127.0.0.1:8100
[f1f3041c][XCUITestDriver@8ff3] Matched '/status' to command name 'getStatus'
[f1f3041c][XCUITestDriver@8ff3] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[f1f3041c][XCUITestDriver@8ff3] connect ECONNREFUSED 127.0.0.1:8100
[6ebf29ef][XCUITestDriver@c5e1] Matched '/status' to command name 'getStatus'
[6ebf29ef][XCUITestDriver@c5e1] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[6ebf29ef][XCUITestDriver@c5e1] connect ECONNREFUSED 127.0.0.1:8100
^C[Appium] Received SIGINT - shutting down
[AppiumDriver@65ab] There are no active sessions for cleanup
[HTTP] Closing Appium HTTP server
[HTTP] Appium HTTP server has been succesfully closed after 0ms

I followed all the instructions on the real device config setup, and it was working nicely on the previous version of MacOS.

I just upgraded my system to the following versions:

  • iOS 18.0
  • MacOS 15.0
  • Xcode 16.0

I am also running the following versions:

It doesn't work on either driver (XCUITest nor Flutter).

I have also tried using appium inspector, and same thing occured.

Screenshot 2024-09-25 at 4 36 03 PM

I've looked into this issue but wasn't able to fix my problem from it:

@KazuCocoa
Copy link
Member

Have you tried to get logs with showXcodeLog as the log message to see more details? It would be a good idea to run xcodebuild directly to check the behavior as well.

@myfatduck-sync
Copy link
Author

myfatduck-sync commented Sep 26, 2024

Here are the logs with showXcodeLog enabled:

Logs with showXcodeLog
[Appium] Welcome to Appium v2.11.4
[Appium] The autodetected Appium home path: /Users/myfatduck/.appium
[Appium] Attempting to load driver xcuitest...
[Appium] Attempting to load driver flutter...
[Appium] Requiring driver at /Users/myfatduck/.appium/node_modules/appium-xcuitest-driver/build/index.js
[Appium] Requiring driver at /Users/myfatduck/.appium/node_modules/appium-flutter-driver/build/lib/driver.js
[Appium] XCUITestDriver has been successfully loaded in 0.775s
[Appium] FlutterDriver has been successfully loaded in 0.775s
[Appium] Appium REST http interface listener started on http://0.0.0.0:4723
[Appium] You can provide the following URLs in your client code to connect to this server:
	http://127.0.0.1:4723/ (only accessible from the same host)
	http://10.10.128.64:4723/
	http://169.254.244.31:4723/
[Appium] Available drivers:
[Appium]   - [email protected] (automationName 'XCUITest')
[Appium]   - [email protected] (automationName 'Flutter')
[Appium] No plugins have been installed. Use the "appium plugin" command to install the one(s) you want to use.
[HTTP] --> POST /session {"capabilities":{"alwaysMatch":{"platformName":"ios","appium:automationName":"xcuitest","appium:bundleId":"com.testing.myapp","appium:udid":"00008103-000230A001D1001E","appium:xcodeSigningId":"Apple Development","appium:xcodeOrgId":"NMZXW9F8YH","appium:updatedWDABundleId":"example.testing.WebDriverAgentRunner","appium:autoAcceptAlerts":"true","appium:showXcodeLog":"true","appium:includeSafariInWebviews":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]},"desiredCapabilities":{"platformName":"ios","appium:automationName":"xcuitest","appium:bundleId":"com.testing.myapp","appium:udid":"00008103-000230A001D1001E","appium:xcodeSigningId":"Apple Development","appium:xcodeOrgId":"NMZXW9F8YH","appium:updatedWDABundleId":"example.testing.WebDriverAgentRunner","appium:autoAcceptAlerts":"true","appium:showXcodeLog":"true","appium:includeSafariInWebviews":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true}}
[AppiumDriver@972f] Calling AppiumDriver.createSession() with args: [{"platformName":"ios","appium:automationName":"xcuitest","appium:bundleId":"com.testing.myapp","appium:udid":"00008103-000230A001D1001E","appium:xcodeSigningId":"Apple Development","appium:xcodeOrgId":"NMZXW9F8YH","appium:updatedWDABundleId":"example.testing.WebDriverAgentRunner","appium:autoAcceptAlerts":"true","appium:showXcodeLog":"true","appium:includeSafariInWebviews":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},null,{"alwaysMatch":{"platformName":"ios","appium:automationName":"xcuitest","appium:bundleId":"com.testing.myapp","appium:udid":"00008103-000230A001D1001E","appium:xcodeSigningId":"Apple Development","appium:xcodeOrgId":"NMZXW9F8YH","appium:updatedWDABundleId":"example.testing.WebDriverAgentRunner","appium:autoAcceptAlerts":"true","appium:showXcodeLog":"true","appium:includeSafariInWebviews":true,"appium:newCommandTimeout":3600,"appium:connectHardwareKeyboard":true},"firstMatch":[{}]}]
[AppiumDriver@972f] Event 'newSessionRequested' logged at 1727363831468 (11:17:11 GMT-0400 (Eastern Daylight Time))
[Appium] Attempting to find matching driver for automationName 'xcuitest' and platformName 'ios'
[Appium] The 'xcuitest' driver was installed and matched caps.
[Appium] Will require it at /Users/myfatduck/.appium/node_modules/appium-xcuitest-driver
[Appium] Requiring driver at /Users/myfatduck/.appium/node_modules/appium-xcuitest-driver/build/index.js
[AppiumDriver@972f] Appium v2.11.4 creating new XCUITestDriver (v7.27.0) session
[AppiumDriver@972f] Checking BaseDriver versions for Appium and XCUITestDriver
[AppiumDriver@972f] Appium's BaseDriver version is 9.11.4
[AppiumDriver@972f] XCUITestDriver's BaseDriver version is 9.11.4
[XCUITestDriver@2c3f]
[XCUITestDriver@2c3f] Creating session with W3C capabilities: {
  "alwaysMatch": {
    "platformName": "ios",
    "appium:automationName": "xcuitest",
    "appium:bundleId": "com.testing.myapp",
    "appium:udid": "00008103-000230A001D1001E",
    "appium:xcodeSigningId": "Apple Development",
    "appium:xcodeOrgId": "NMZXW9F8YH",
    "appium:updatedWDABundleId": "example.testing.WebDriverAgentRunner",
    "appium:autoAcceptAlerts": "true",
    "appium:showXcodeLog": "true",
    "appium:includeSafariInWebviews": true,
    "appium:newCommandTimeout": 3600,
    "appium:connectHardwareKeyboard": true
  },
  "firstMatch": [
    {}
  ]
}
[XCUITestDriver@2c3f] Capability 'autoAcceptAlerts' changed from string to boolean. This may cause unexpected behavior
[XCUITestDriver@2c3f] Capability 'showXcodeLog' changed from string to boolean. This may cause unexpected behavior
[XCUITestDriver@2c3f] 'platformVersion' capability ('undefined') is not a valid version number. Consider fixing it or be ready to experience an inconsistent driver behavior.
[dbe6e9bb][XCUITestDriver@2c3f] Session created with session id: dbe6e9bb-2777-4f0b-b4c5-cb226bb937a6
[dbe6e9bb][XCUITest] Current user: 'myfatduck'
[dbe6e9bb][XCUITestDriver@2c3f] Available real devices: 00008103-000230A001D1001E
[dbe6e9bb][XCUITestDriver@2c3f] Creating iDevice object with udid '00008103-000230A001D1001E'
[dbe6e9bb][XCUITestDriver@2c3f] Determining device to run tests on: udid: '00008103-000230A001D1001E', real device: true
[dbe6e9bb][XCUITestDriver@2c3f] No platformVersion specified. Using device version: '18.0'
[dbe6e9bb][XCUITestDriver@2c3f] Event 'xcodeDetailsRetrieved' logged at 1727363831587 (11:17:11 GMT-0400 (Eastern Daylight Time))
[dbe6e9bb][XCUITestDriver@2c3f] Event 'appConfigured' logged at 1727363831588 (11:17:11 GMT-0400 (Eastern Daylight Time))
[dbe6e9bb][XCUITestDriver@2c3f] Event 'resetStarted' logged at 1727363831588 (11:17:11 GMT-0400 (Eastern Daylight Time))
[dbe6e9bb][XCUITestDriver@2c3f] Reset: running ios real device reset flow
[dbe6e9bb][XCUITestDriver@2c3f] Event 'resetComplete' logged at 1727363831588 (11:17:11 GMT-0400 (Eastern Daylight Time))
[dbe6e9bb][XCUITestDriver@2c3f] Using WDA path: '/Users/myfatduck/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent'
[dbe6e9bb][XCUITestDriver@2c3f] Using WDA agent: '/Users/myfatduck/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj'
[dbe6e9bb][XCUITestDriver@2c3f] The pyidevice tool is not present in PATH. Skipping crash logs collection for real devices.
[dbe6e9bb][XCUITestDriver@2c3f] Event 'logCaptureStarted' logged at 1727363831721 (11:17:11 GMT-0400 (Eastern Daylight Time))
[dbe6e9bb][XCUITestDriver@2c3f] Setting up real device
[dbe6e9bb][XCUITestDriver@2c3f] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found
[dbe6e9bb][DevCon Factory] Requesting connection for device 00008103-000230A001D1001E on local port 8100, device port 8100
[dbe6e9bb][DevCon Factory] Cached connections count: 0
[dbe6e9bb][DevCon Factory] Successfully requested the connection for 00008103-000230A001D1001E:8100
[dbe6e9bb][XCUITestDriver@2c3f] Parsed BUILD_DIR configuration value: '/Users/myfatduck/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/build'
[dbe6e9bb][XCUITestDriver@2c3f] Got derived data root: '/Users/myfatduck/.appium/node_modules/appium-xcuitest-driver/node_modules'
[dbe6e9bb][XCUITestDriver@2c3f] Starting WebDriverAgent initialization with the synchronization key '/Users/myfatduck/.appium/node_modules/appium-xcuitest-driver/node_modules'
[dbe6e9bb][WD Proxy] Matched '/status' to command name 'getStatus'
[dbe6e9bb][WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[dbe6e9bb][iProxy@00008103:8100] Connection was refused to port 8100
[dbe6e9bb][WD Proxy] socket hang up
[dbe6e9bb][XCUITestDriver@2c3f] WDA is not listening at 'http://127.0.0.1:8100/'. Original error:: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: socket hang up
[dbe6e9bb][XCUITestDriver@2c3f] WDA is currently not running. There is nothing to cache
[dbe6e9bb][XCUITestDriver@2c3f] Trying to start WebDriverAgent 1 times with 10000ms interval
[dbe6e9bb][XCUITestDriver@2c3f] These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities
[dbe6e9bb][XCUITestDriver@2c3f] Event 'wdaStartAttempted' logged at 1727363832491 (11:17:12 GMT-0400 (Eastern Daylight Time))
[dbe6e9bb][XCUITestDriver@2c3f] Launching WebDriverAgent on the device
[dbe6e9bb][XCUITestDriver@2c3f] There is no need to perform the project cleanup. A fresh install has been detected
[dbe6e9bb][WebDriverAgent] Killing running processes 'xcodebuild.*00008103-000230A001D1001E' for the device 00008103-000230A001D1001E...
[dbe6e9bb][WebDriverAgent] 'pgrep -if xcodebuild.*00008103-000230A001D1001E' didn't detect any matching processes. Return code: 1
[dbe6e9bb][WebDriverAgent] Successfully updated '/Users/myfatduck/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj/project.pbxproj' with bundle id 'example.testing.WebDriverAgentRunner'
[dbe6e9bb][XCUITestDriver@2c3f] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /Users/myfatduck/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/myfatduck/.appium/node_modules/appium-xcuitest-driver/node_modules -destination id=00008103-000230A001D1001E IPHONEOS_DEPLOYMENT_TARGET=18.0 DEVELOPMENT_TEAM=NMZXW9F8YH CODE_SIGN_IDENTITY=Apple Development GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO' in directory '/Users/myfatduck/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent'
[dbe6e9bb][XCUITestDriver@2c3f] Output from xcodebuild will be logged. To change this, use 'showXcodeLog' desired capability
[dbe6e9bb][Xcode] Command line invocation:
[dbe6e9bb][XCUITestDriver@2c3f] Waiting up to 60000ms for WebDriverAgent to start
[dbe6e9bb][XCUITestDriver@2c3f] Matched '/status' to command name 'getStatus'
[dbe6e9bb][XCUITestDriver@2c3f] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[dbe6e9bb][Xcode]     /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild build-for-testing test-without-building -project /Users/myfatduck/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/myfatduck/.appium/node_modules/appium-xcuitest-driver/node_modules -destination id=00008103-000230A001D1001E IPHONEOS_DEPLOYMENT_TARGET=18.0 DEVELOPMENT_TEAM=NMZXW9F8YH "CODE_SIGN_IDENTITY=Apple Development" GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO
[dbe6e9bb][Xcode]
[dbe6e9bb][Xcode] User defaults from command line:
[dbe6e9bb][Xcode]     IDEDerivedDataPathOverride = /Users/myfatduck/.appium/node_modules/appium-xcuitest-driver/node_modules
[dbe6e9bb][Xcode]     IDEPackageSupportUseBuiltinSCM = YES
[dbe6e9bb][Xcode]
[dbe6e9bb][Xcode] Build settings from command line:
[dbe6e9bb][Xcode]     CODE_SIGN_IDENTITY = Apple Development
[dbe6e9bb][Xcode]     COMPILER_INDEX_STORE_ENABLE = NO
[dbe6e9bb][Xcode]     DEVELOPMENT_TEAM = NMZXW9F8YH
[dbe6e9bb][Xcode]     GCC_TREAT_WARNINGS_AS_ERRORS = 0
[dbe6e9bb][Xcode]     IPHONEOS_DEPLOYMENT_TARGET = 18.0
[dbe6e9bb][Xcode]
[dbe6e9bb][iProxy@00008103:8100] Connection was refused to port 8100
[dbe6e9bb][XCUITestDriver@2c3f] socket hang up
[dbe6e9bb][Xcode] Prepare packages
[dbe6e9bb][Xcode]
[dbe6e9bb][Xcode] note: Using codesigning identity override: Apple Development
[dbe6e9bb][Xcode] ComputeTargetDependencyGraph
[dbe6e9bb][Xcode] note: Building targets in dependency order
[dbe6e9bb][Xcode] note: Target dependency graph (2 targets)
[dbe6e9bb][Xcode]     Target 'WebDriverAgentRunner' in project 'WebDriverAgent'
[dbe6e9bb][Xcode]         ➜ Explicit dependency on target 'WebDriverAgentLib' in project 'WebDriverAgent'
[dbe6e9bb][Xcode]     Target 'WebDriverAgentLib' in project 'WebDriverAgent' (no dependencies)
[dbe6e9bb][Xcode]
[dbe6e9bb][Xcode] GatherProvisioningInputs
[dbe6e9bb][XCUITestDriver@2c3f] Matched '/status' to command name 'getStatus'
[dbe6e9bb][XCUITestDriver@2c3f] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[dbe6e9bb][iProxy@00008103:8100] Connection was refused to port 8100
[dbe6e9bb][XCUITestDriver@2c3f] socket hang up
[dbe6e9bb][XCUITestDriver@2c3f] Matched '/status' to command name 'getStatus'
[dbe6e9bb][XCUITestDriver@2c3f] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[dbe6e9bb][iProxy@00008103:8100] Connection was refused to port 8100
[dbe6e9bb][XCUITestDriver@2c3f] socket hang up
[dbe6e9bb][XCUITestDriver@2c3f] Matched '/status' to command name 'getStatus'
[dbe6e9bb][XCUITestDriver@2c3f] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[dbe6e9bb][iProxy@00008103:8100] Connection was refused to port 8100
[dbe6e9bb][XCUITestDriver@2c3f] socket hang up
[dbe6e9bb][XCUITestDriver@2c3f] Matched '/status' to command name 'getStatus'
[dbe6e9bb][XCUITestDriver@2c3f] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[dbe6e9bb][iProxy@00008103:8100] Connection was refused to port 8100
[dbe6e9bb][XCUITestDriver@2c3f] socket hang up
[dbe6e9bb][XCUITestDriver@2c3f] Matched '/status' to command name 'getStatus'
[dbe6e9bb][XCUITestDriver@2c3f] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[dbe6e9bb][iProxy@00008103:8100] Connection was refused to port 8100
[dbe6e9bb][XCUITestDriver@2c3f] socket hang up
[dbe6e9bb][XCUITestDriver@2c3f] Matched '/status' to command name 'getStatus'
[dbe6e9bb][XCUITestDriver@2c3f] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[dbe6e9bb][iProxy@00008103:8100] Connection was refused to port 8100
[dbe6e9bb][XCUITestDriver@2c3f] socket hang up
[dbe6e9bb][XCUITestDriver@2c3f] Matched '/status' to command name 'getStatus'
[dbe6e9bb][XCUITestDriver@2c3f] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[dbe6e9bb][iProxy@00008103:8100] Connection was refused to port 8100
[dbe6e9bb][XCUITestDriver@2c3f] socket hang up
[dbe6e9bb][XCUITestDriver@2c3f] Matched '/status' to command name 'getStatus'
[dbe6e9bb][XCUITestDriver@2c3f] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[dbe6e9bb][iProxy@00008103:8100] Connection was refused to port 8100
[dbe6e9bb][XCUITestDriver@2c3f] socket hang up
[dbe6e9bb][XCUITestDriver@2c3f] Matched '/status' to command name 'getStatus'
[dbe6e9bb][XCUITestDriver@2c3f] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[dbe6e9bb][iProxy@00008103:8100] Connection was refused to port 8100
[dbe6e9bb][XCUITestDriver@2c3f] socket hang up
[dbe6e9bb][XCUITestDriver@2c3f] Matched '/status' to command name 'getStatus'
[dbe6e9bb][XCUITestDriver@2c3f] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[dbe6e9bb][iProxy@00008103:8100] Connection was refused to port 8100
[dbe6e9bb][XCUITestDriver@2c3f] socket hang up
[dbe6e9bb][Xcode]
[dbe6e9bb][Xcode] CreateBuildDescription
[dbe6e9bb][Xcode]
[dbe6e9bb][Xcode] ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.0.sdk -x objective-c -c /dev/null
[dbe6e9bb][Xcode]
[dbe6e9bb][Xcode] ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.0.sdk -x c -c /dev/null
[dbe6e9bb][Xcode]
[dbe6e9bb][Xcode] ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.0.sdk -x c -c /dev/null
[dbe6e9bb][Xcode]
[dbe6e9bb][Xcode] ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld -version_details
[dbe6e9bb][Xcode]
[dbe6e9bb][Xcode] Build description signature: 0e9d3e2acdd12b891c4c5fa9c2b404a6
[dbe6e9bb][Xcode] Build description path: /Users/myfatduck/.appium/node_modules/appium-xcuitest-driver/node_modules/Build/Intermediates.noindex/XCBuildData/0e9d3e2acdd12b891c4c5fa9c2b404a6.xcbuilddata
[dbe6e9bb][Xcode] /Users/myfatduck/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj: error: No profiles for 'example.testing.WebDriverAgentRunner.xctrunner' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'example.testing.WebDriverAgentRunner.xctrunner'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'WebDriverAgentRunner' from project 'WebDriverAgent')
[dbe6e9bb][Xcode] /Users/myfatduck/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj: error: No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "NMZXW9F8YH" with a private key was found. (in target 'WebDriverAgentLib' from project 'WebDriverAgent')
[dbe6e9bb][Xcode] ** TEST BUILD FAILED **
[dbe6e9bb][Xcode]
[dbe6e9bb][Xcode]
[dbe6e9bb][Xcode] The following build commands failed:
[dbe6e9bb][Xcode] 	Building project WebDriverAgent for testing with scheme WebDriverAgentRunner
[dbe6e9bb][Xcode] (1 failure)
[dbe6e9bb][XCUITestDriver@2c3f] Matched '/status' to command name 'getStatus'
[dbe6e9bb][XCUITestDriver@2c3f] Proxying [GET /status] to [GET http://127.0.0.1:8100/status] with no body
[dbe6e9bb][iProxy@00008103:8100] Connection was refused to port 8100
[dbe6e9bb][XCUITestDriver@2c3f] socket hang up
[dbe6e9bb][Xcode] 2024-09-26 11:17:24.296 xcodebuild[14690:106883] [MT] IDETestOperationsObserverDebug: 0.198 elapsed -- Testing started completed.
[dbe6e9bb][Xcode] 2024-09-26 11:17:24.296 xcodebuild[14690:106883] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
[dbe6e9bb][Xcode] 2024-09-26 11:17:24.296 xcodebuild[14690:106883] [MT] IDETestOperationsObserverDebug: 0.198 sec, +0.198 sec -- end
[dbe6e9bb][Xcode]
[dbe6e9bb][Xcode] Test session results, code coverage, and logs:
[dbe6e9bb][Xcode] 	/Users/myfatduck/.appium/node_modules/appium-xcuitest-driver/node_modules/Logs/Test/Test-WebDriverAgentRunner-2024.09.26_11-17-13--0400.xcresult
[dbe6e9bb][Xcode]
[dbe6e9bb][Xcode] Testing failed:
[dbe6e9bb][Xcode] 	No profiles for 'example.testing.WebDriverAgentRunner.xctrunner' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'example.testing.WebDriverAgentRunner.xctrunner'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.
[dbe6e9bb][Xcode] 	No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "NMZXW9F8YH" with a private key was found.
[dbe6e9bb][Xcode] 	Test target WebDriverAgentRunner encountered an error (The bundle identifier for WebDriverAgentRunner-Runner.app couldn’t be read. No such file or directory: “/Users/myfatduck/.appium/node_modules/appium-xcuitest-driver/node_modules/Build/Products/Debug-iphoneos/WebDriverAgentRunner-Runner.app”.)
[dbe6e9bb][Xcode]
[dbe6e9bb][Xcode] ** TEST EXECUTE FAILED **
[dbe6e9bb][Xcode]
[dbe6e9bb][Xcode] Testing started
[dbe6e9bb][Xcode] xcodebuild exited with code '65' and signal 'null'
[dbe6e9bb][XCUITestDriver@2c3f] Event 'wdaStartFailed' logged at 1727363844323 (11:17:24 GMT-0400 (Eastern Daylight Time))
[dbe6e9bb][XCUITestDriver@2c3f] Error: xcodebuild failed with code 65. This usually indicates an issue with the local Xcode setup or WebDriverAgent project configuration or the driver-to-platform version mismatch. Consider checking the WebDriverAgent configuration guide for real iOS devices at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md.
    at SubProcess.<anonymous> (/Users/myfatduck/.appium/node_modules/appium-xcuitest-driver/node_modules/appium-webdriveragent/lib/xcodebuild.js:384:25)
    at Object.onceWrapper (node:events:635:26)
    at SubProcess.emit (node:events:520:28)
    at ChildProcess.<anonymous> (/Users/myfatduck/.appium/node_modules/appium-xcuitest-driver/node_modules/teen_process/lib/subprocess.js:201:14)
    at ChildProcess.emit (node:events:520:28)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:294:12)
    at Process.callbackTrampoline (node:internal/async_hooks:130:17)
[dbe6e9bb][XCUITestDriver@2c3f] Unable to launch WebDriverAgent. Original error: xcodebuild failed with code 65. This usually indicates an issue with the local Xcode setup or WebDriverAgent project configuration or the driver-to-platform version mismatch. Consider checking the WebDriverAgent configuration guide for real iOS devices at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md.. Make sure you follow the tutorial at https://appium.github.io/appium-xcuitest-driver/latest/preparation/real-device-config/
[dbe6e9bb][XCUITestDriver@2c3f] Quitting and uninstalling WebDriverAgent

Looks like somehow the error changed to an Xcode 65 error. Seems like it's now a certificate/profile issue?

@KazuCocoa
Copy link
Member

yes, this is by xcodebuild. It indicates the xcodebuild was not able to build WDA for the certificate/device issue.

[dbe6e9bb][Xcode] Testing failed:
[dbe6e9bb][Xcode] No profiles for 'example.testing.WebDriverAgentRunner.xctrunner' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'example.testing.WebDriverAgentRunner.xctrunner'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.
[dbe6e9bb][Xcode] No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "your team id" with a private key was found.

@myfatduck-sync
Copy link
Author

Any guidance on how I can further dissect the issue? I went over the setup/signing process written in Appium configuration

@KazuCocoa
Copy link
Member

The issue itself is by xcodebuild, so what we could advise as our best is in the configuration page.

e.g.

  • if updatedWDABundleId is the correct bundle id for the certificate
  • if the certificate works (via Xcode)
  • If it is paid account
    • I observed that a free account's one failed to sign via xcodebuild but succeeded in Xcode. Not sure the reason but Apple did, but past worked but recent didn't.

https://appium.github.io/appium-xcuitest-driver/latest/preparation/real-device-config/
https://appium.github.io/appium-xcuitest-driver/latest/preparation/prov-profile-generic-manual/

appium:allowProvisioningDeviceRegistration could help to register the device automatically by the xcodebuild.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants