Skip to content

fix: keep menu available when device discovery fails - #153

Open
Ha1baraA11 wants to merge 1 commit into
okwasniewski:mainfrom
Ha1baraA11:codex/fix-device-discovery-errors
Open

fix: keep menu available when device discovery fails#153
Ha1baraA11 wants to merge 1 commit into
okwasniewski:mainfrom
Ha1baraA11:codex/fix-device-discovery-errors

Conversation

@Ha1baraA11

Copy link
Copy Markdown

Summary:

Opening MiniSim can fail when xcrun simctl is unavailable. The failure is surfaced as a ShellOut error and prevents the menu from opening.

This change keeps MiniSim usable when device discovery for one platform fails, and makes the iOS setup check validate the actual simctl command instead of only checking whether /usr/bin/xcrun exists.

Changelog:

  • Prevent Android or iOS device discovery errors from blocking the entire MiniSim menu.
  • Validate xcrun simctl during iOS setup checks.

Test Plan:

  • xcodebuild -scheme MiniSim -configuration Debug -sdk macosx -derivedDataPath /tmp/minisim-derived -clonedSourcePackagesDirPath /tmp/minisim-packages build CODE_SIGNING_ALLOWED=NO
  • xcodebuild test -scheme MiniSim -destination 'platform=macOS' -derivedDataPath /tmp/minisim-derived -clonedSourcePackagesDirPath /tmp/minisim-packages CODE_SIGNING_ALLOWED=NO
  • git diff --check

All tests passed.

Manual reproduction is environment-dependent because it requires an unavailable or misconfigured Xcode simctl installation. The reported failure is documented in #150.

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