Skip to content

Conversation

erik-bershel
Copy link
Contributor

Description

Simulators may fail to boot during the first build after upgrading macOS. (152328794)

Workaround: Execute xcrun simctl runtime dyld_shared_cache update --all prior to booting the simulator to ensure dyld shared cache generation has completed.

The practice of forcing cache creation should generally have a positive impact on performance.

Related issue:

Check list

  • Related issue / work item is attached
  • Tests are written (if applicable)
  • Documentation is updated (if applicable)
  • Changes are tested and related VM images are successfully generated

@Copilot Copilot AI review requested due to automatic review settings October 9, 2025 09:40
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements a workaround for a known Xcode 26.1 issue where simulators may fail to boot after macOS upgrades by rebuilding the dyld shared cache for the latest stable Xcode version.

  • Adds a new Update-DyldCache function to identify and update the dyld shared cache for the latest stable Xcode
  • Integrates the cache update process into the Xcode installation workflow (excluding macOS Sonoma)

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
images/macos/scripts/helpers/Xcode.Installer.psm1 Adds Update-DyldCache function to rebuild dyld shared cache for latest stable Xcode
images/macos/scripts/build/Install-Xcode.ps1 Integrates dyld cache update into installation process with Sonoma exclusion

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@erik-bershel erik-bershel merged commit e2ff98f into actions:main Oct 9, 2025
3 checks passed
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.

2 participants