Skip to content

Accept both simulator UUIDs and simulator device names in @rules_apple//apple/build_settings:ios_device#3002

Draft
ssarad wants to merge 2 commits into
bazelbuild:mainfrom
ssarad:sp/simulator-reuse
Draft

Accept both simulator UUIDs and simulator device names in @rules_apple//apple/build_settings:ios_device#3002
ssarad wants to merge 2 commits into
bazelbuild:mainfrom
ssarad:sp/simulator-reuse

Conversation

@ssarad

@ssarad ssarad commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

The @rules_apple//apple/build_settings:ios_device build setting was supposed to accept both simulator UUIDs and simulator device names (like "iPhone 15 Pro"), but it only worked with UUIDs. The problem was in apple/internal/ios_rules.bzl where the ios_device value was always passed as simulator_identifier (which expects a UUID) instead of being passed to the appropriate parameter based on its format.

This is particularly nice for companies that require proxy certs in simulators and allows you to reuse pre-loaded simulators with all the certs

Updated the simulator executable registration to:

  • Check if ios_device is a UUID or a device name
  • Pass it as simulator_identifier if it's a UUID
  • Pass it as simulator_device if it's a device name (like "iPhone 15 Pro")
  • Fall back to the default ios_simulator_device setting if ios_device is not set

@ssarad ssarad marked this pull request as ready for review June 15, 2026 17:49
@ssarad ssarad marked this pull request as draft June 16, 2026 20:20
@keith keith added this to the 5.0.0 milestone Jun 23, 2026
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