Skip to content

ci: replace downloadPlatform with simctl create - #16494

Merged
andrewheard merged 8 commits into
mainfrom
ah/setup-simulator-script
Aug 11, 2026
Merged

ci: replace downloadPlatform with simctl create#16494
andrewheard merged 8 commits into
mainfrom
ah/setup-simulator-script

Conversation

@andrewheard

Copy link
Copy Markdown
Contributor

Replaced the slow xcodebuild -downloadPlatform calls in GitHub Actions workflows with xcrun simctl create using installed runtimes.

  • Added scripts/setup_simulator.sh to dynamically create custom simulators using the latest available installed runtime in the runner image.
  • Added a reusable .github/actions/setup_simulator composite action.
  • Updated scripts/build.sh to automatically set up and target the new Firebase- prefixed simulator devices.
  • Replaced xcodebuild -downloadPlatform calls in workflow files.

#no-changelog

Replace slow `xcodebuild -downloadPlatform` calls in GitHub Actions
workflows with `xcrun simctl create` using installed runtimes.

- Add `scripts/setup_simulator.sh` to dynamically create custom
  simulators using the latest available installed runtime.
- Add reusable `.github/actions/setup_simulator` composite action.
- Update `scripts/build.sh` to automatically set up and target the
  new `Firebase-` prefixed simulator devices.
- Replace `xcodebuild -downloadPlatform` calls in workflow files.
@gemini-code-assist

Copy link
Copy Markdown
Contributor
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

This pull request optimizes the CI pipeline by replacing inefficient platform downloading with a more performant and reliable approach to simulator management. By dynamically creating and targeting specific simulator devices, the changes reduce build times and ensure a more predictable testing environment across different platforms.

Highlights

  • Simulator Management: Replaced slow xcodebuild -downloadPlatform calls with a new dynamic simulator creation script using xcrun simctl.
  • CI Infrastructure: Introduced a reusable GitHub Actions composite action and a dedicated shell script to provision specific simulator devices on demand.
  • Build Configuration: Updated build scripts to target standardized Firebase-prefixed simulator devices, improving consistency across CI runs.
New Features

🧠 You can now enable Memory (public preview) to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Ignored Files
  • Ignored by pattern: .github/workflows/** (14)
    • .github/workflows/_build.yml
    • .github/workflows/_cocoapods.cron.yml
    • .github/workflows/_cocoapods.yml
    • .github/workflows/_quickstart.framework.yml
    • .github/workflows/_quickstart.yml
    • .github/workflows/_spm.yml
    • .github/workflows/infra.archiving.yml
    • .github/workflows/infra.spm_global.yml
    • .github/workflows/release.zip.yml
    • .github/workflows/sdk.ai.yml
    • .github/workflows/sdk.analytics.yml
    • .github/workflows/sdk.auth.yml
    • .github/workflows/sdk.crashlytics.yml
    • .github/workflows/sdk.firestore.yml
Activity
  • The pull request was created by andrewheard.
  • The user requested a summary of the pull request using the /gemini summary command.

Normalize input platform strings to lowercase and strip trailing
flags in `scripts/setup_simulator.sh` so matrix inputs like `tvos`
or `watchos --skip-tests` correctly match their target platform
instead of falling through to the iPhone default.
Comment thread scripts/build.sh
@andrewheard

Copy link
Copy Markdown
Contributor Author

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new setup_simulator.sh script and a corresponding GitHub Action to dynamically create Apple simulators using the latest installed runtimes. It also updates build.sh to use these standardized simulator names. The review feedback focuses on improving the robustness and performance of the new script, specifically by refining simulator name matching, adding a non-macOS platform check, robustly parsing runtime identifiers, and deferring the visionOS runtime query to avoid unnecessary overhead on other platforms.

Comment thread scripts/setup_simulator.sh
Comment thread scripts/setup_simulator.sh
Comment thread scripts/setup_simulator.sh
Comment thread scripts/setup_simulator.sh Outdated
@andrewheard
andrewheard marked this pull request as ready for review August 11, 2026 00:16
@andrewheard
andrewheard merged commit 5da916b into main Aug 11, 2026
794 checks passed
@andrewheard
andrewheard deleted the ah/setup-simulator-script branch August 11, 2026 16:01
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