Xcode 15 WDA failure and workaround

After upgrading to Xcode 15, WDA would delete the WDA on our test iPad, and fail to install another. My first workaround was to open Xcode and run WebDriverAgentRunner’s tests, which installed a new one on the iPad, then kill the tests, then make sure WDA Runner was launched, and launch my tests. It worked, but a pain when it’s a clean iPad.

I noticed in the logs that there was a “Clean” going on, so I found it in
appium-xcuitest-driver/node_modules/appium-webdriveragent/lib/xcodebuild.js and commented out these lines, and now it works.

185 //await exec(‘xcodebuild’, [
186 // ‘clean’,
187 // ‘-project’, this.agentPath,
188 // ‘-scheme’, scheme,
189 //]);

I don’t know if that’ll break Xcode 14, but it’s all working on 15. Can we get this fixed please?

Barry