Skip to content

Recover simulator runtime installs and bound failure alerts - #897

Open
anciltech wants to merge 2 commits into
XcodesOrg:mainfrom
anciltech:fix/runtime-install-recovery
Open

anciltech wants to merge 2 commits into
XcodesOrg:mainfrom
anciltech:fix/runtime-install-recovery

Conversation

@anciltech

@anciltech anciltech commented Nov 16, 2026 •

Copy link
Copy Markdown

Fixes #894
Fixes #895

Changes

  • Identify the failed simulator runtime and show relevant command diagnostics in a bounded alert. Long messages offer Copy Details.
  • Start direct disk-image downloads immediately. Queue MobileAsset runtimes when they need an Xcode that is still installing. For a beta runtime, wait for the requested Xcode if no installed Xcode matches the runtime's SDK.
  • Stream download progress from the scoped xcodebuild command. Show Installing when the command reports that phase, and clear progress when CoreSimulator confirms the runtime is installed. Use the same circled × on Xcode and platform downloads.
  • Keep selected runtime removals visible as Removing… until CoreSimulator confirms the image is gone, and block duplicate delete requests. When removing the last Xcode, remove the selected runtimes while its simctl is still available. A surviving Xcode, including a beta, can supply simctl without changing xcode-select.

The original screenshots are embedded in #894 and #895. The original iOS exit-70 cause remains unknown because its diagnostic was outside the screenshot.

Live reinstall on macOS 27.3

Tested a local 4.2.0 build containing both PRs on Apple silicon. Started with no full Xcode installed, Command Line Tools selected, and the iOS and watchOS 27.3 beta runtimes absent. Started Xcode 27.3 beta (27C5020n) with automatic platform downloads enabled.

  • Both platform rows showed Waiting for Xcode to finish installing… while Xcode downloaded and unpacked. Xcode and the runtime rows used the same circled × cancel control.
  • After Xcode was available, both rows switched to Downloading and showed advancing percentages. iOS was observed from 3% to 91%, and watchOS from 10% to 70% before it finished.
  • Both rows finished with Uninstall available and the progress indicators cleared. CoreSimulator reported iOS 27.3 (24C5037i) and watchOS 27.3 (24S5284h) as Ready, with both download processes exited.
  • The optional privileged helper was declined. Xcodes showed a setup notice and then continued the runtime installs using the matching Xcode without a global selection change.

Automated validation

The combined local build ran 122 macOS tests under Xcode 27.3 beta. 119 passed and three fixture-dependent archive smoke tests were skipped. Regression coverage includes scoped subprocess progress and diagnostics, queued and retried runtime installs, runtime removal ordering, and duplicate removal suppression. The live reinstall exercised installation and final UI state. The new removal behavior was verified with test fixtures.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Queue simulator runtimes while the first compatible Xcode installs Simulator runtime failure shows a misleading alert that extends off-screen

1 participant