Repository navigation
Fix Appium iOS startup on Xcode 27 - #320
Conversation
talosmachina
left a comment
There was a problem hiding this comment.
No findings. Pins the optional appium-xcuitest-driver to 12.20.0 (from ^10.14.4, resolved 10.17.0) and regenerates the lockfile so iOS sessions start on Xcode 27. Reviewed 07fd6e7, full tier (dependency manifest), static only.
What I checked, and 4 candidates I ruled out
Build: skipped, talos-pr-run could not read the author's permission on this repo and fails closed, so nothing from the branch was installed or run here.
Lockfile diffed as data (base main vs head, lockfileVersion 3 both): 110 version changes, 163 entries removed, 23 added. Every version change outside four optional @img/sharp-* / @emnapi/runtime entries sits under node_modules/appium-xcuitest-driver/. Top-level appium stays 3.0.0 and appium-uiautomator2-driver stays 5.0.0, so the Android path resolves the same packages. Every entry resolves from registry.npmjs.org with an integrity hash; no new required (non-optional, non-dev) package.
Engines: 12.20.0 declares node ^20.19.0 || ^22.12.0 || >=24.0.0, the same floor as 10.17.0, and the only workflow here that runs npm ci uses Node 22.
CI: no checks report on this branch.
Ruled out
- Peer mismatch: 12.20.0 peers
appium ^3.0.0-rc.2, satisfied by the pinnedappium3.0.0; the nested copy ofappiumthe old driver carried is gone, so one Appium server loads both drivers. - New install script:
@appium/coresim1.13.1 is the only added package with one; itsscripts/install.mjsexits 0 on any non-darwin platform and on macOS runsnode-gyp-build, which loads the shippeddarwin-arm64prebuild (an Intel Mac would compile it). Linux installs compile nothing. - Duplicate root entry:
appium-xcuitest-driverappearing under bothdependenciesandoptionalDependenciesof the lockfile root is how npm records an optional dependency, not a second declaration inpackage.json. devtodevOptionalflips: they follow from the optional driver now sharing Appium's tree with the dev-onlyappium; they change nothing for a plainnpm ci.
Not verified here: that the 10 to 12 major jump keeps every capability wdio.conf.ts passes (wdaStartupRetries, processArguments, settings.animationCoolOffTimeout). The PR body reports a passing @send_1 run on Xcode 27.2, which exercises that config end to end; the full iOS gate on the app repo is the check that covers the rest.
Merge confidence: 4/5, a dependency manifest change with no CI on this repo and no build run here; the iOS gate on the app repo is the test that covers it.
pwltr
left a comment
There was a problem hiding this comment.
Reviewed 07fd6e7. XCUITest 12.20.0 accepts the pinned Appium 3.0.0 server, and the reported Mac mini run covers startup and the focused Send flow on Xcode 27.2.
Low candidate: The bundled sharp entry at package-lock.json:11607 gives semver a nearer lockfile entry with no version, shadowing the driver's compatible 7.8.5. If the Ubuntu runner's npm replaces that entry while building the install tree, npm ci can reject the lockfile before migration wallet setup. The reported clean install and Linux dry run make this a runner-specific question. A clean install on the migration runner with its npm version recorded would settle it.
Review details
Quick review
Model: Claude Opus 5.5
Reasoning effort: high
General review
Model: GPT-6.2 Sol
Reasoning effort: high
Combined review
Model: GPT-6.2 Sol
Reasoning effort: high
There was a problem hiding this comment.
Verdict: ✅ Approve
Review: full diff, 2 files.
Findings: None.
QA for 07fd6e7:
Install the E2E lockfile on Linux ✅ A clean Linux ARM64 install loaded UiAutomator2 5.0.0 and Appium 3.0.0 reported ready.
The Ubuntu migration job also completed npm ci at this commit with Node 22.23.5 and npm 10.9.9, then passed the Android wallet setup cases. Ubuntu migration job
Start a fresh Bitkit session on Xcode 27.0 ✅ WebDriverAgent started on a fresh iOS 27.0 simulator and Appium advanced Bitkit from Continue to Get Started.
The startup log confirms that the driver resolved Device Hub and built WebDriverAgent before creating the headless session.
ios-startup-2x.2x.mp4
The exact-lockfile Send run on Xcode 27.2 already covered the Send flow and both keyboard-dismissal assertions. Xcode 27.2 Send run
Broader iOS coverage runs in the companion workflows. PR gate, staging, migration
Reviewed by gpt-6.2-sol-high
Why
After
macmini1moved to Xcode 27.2, the pinned XCUITest driver (10.17.0) still tried to openSimulator.appat its old path. Xcode 27 uses Device Hub. The required iOS check on #1371 failed before any test ran. Failed iOS jobChange
Pin the optional
appium-xcuitest-driverdependency to 12.20.0 and regenerate the lockfile. The new driver resolves Device Hub on Xcode 27. The lockfile resolves Appium 3.0.0 and UiAutomator2 5.0.0 alongside the upgraded iOS driver.Validation
macmini1with Appium 3.0.0 and XCUITest 12.20.0, then opened a Settings session. The driver logged a permission warning when writing Device Hub preferences. Mac mini smoke test@send_1locally with the #1371 Bitkit build on Xcode 27.2 and iPhone 17 on iOS 27.2 (24B8117). It passed, including both keyboard-dismissal assertions. Two earlier attempts timed out during first-run WebDriverAgent compilation. After prebuilding WebDriverAgent, the successful run took 6m 1s end to end.npm ci, Linux x64 lockfile resolution in dry-run mode, TypeScript checking, and linting the test and WDIO files passed. Repository-wide lint still reports errors in the Docker LNURL server files.The same
@send_1test passed onmacmini1with this PR's exact lockfile, a fresh iPhone 17 on iOS 27.2, and the #1371 Bitkit build. Both keyboard checks passed. Compared with the Nov 20 green run, worker start to first camera permission was 79s vs 42s, and the Send test body was 122s vs 114s. The focused run took 4m 33s including simulator boot and teardown. Mac mini run · Nov 20 baselineThe focused iOS workflow change is bitkit-ios#1398. Its normal PR gate and the existing hosted staging and migration workflows are running with this branch.