Skip to content

fix(desktop): don't fail a staged update on a busy DMG detach - #275

Merged
easyhooon merged 1 commit into
mainfrom
fix/desktop-update-detach-retry
Nov 6, 2026
Merged

easyhooon merged 1 commit into
mainfrom
fix/desktop-update-detach-retry

Conversation

@easyhooon

@easyhooon easyhooon commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

Summary

Updating to 3.2.1 on macOS failed after the new app was already copied out of the DMG:

hdiutil failed: hdiutil: couldn't unmount "disk6" - Resource busy

A freshly attached volume can stay busy for a moment (Spotlight, XProtect). The plain hdiutil detach was checked like a required step, so a finished copy turned into "Update failed". The failed state was also plain text, so there was no way to retry except the menu.

Changes

  • stageMac(): always detach in finally; on failure retry with -force, and ignore the result. The finish script removes the workspace afterwards.
  • Title bar: clicking Update failed runs checkNow(), which brings the Update button back. The tooltip says so.

Root cause (confirmed on a second attempt)

hdiutil printed Simulators are still shutting down. Please try again in a few moments. with a booted iOS simulator: CoreSimulatorService dissents from unmounts through DiskArbitration, so a plain detach keeps failing while a simulator runs. -force skips dissenters, which is why the fallback fixes it.

Clicking "Update failed" now checks again so the Update button comes back.
@coderabbitai

coderabbitai Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@easyhooon
easyhooon marked this pull request as ready for review November 6, 2026 05:13
@easyhooon
easyhooon merged commit fb65390 into main Nov 6, 2026
6 checks passed
@easyhooon
easyhooon deleted the fix/desktop-update-detach-retry branch November 6, 2026 05:13
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.

1 participant