Skip to content

Add support for launching watchOS apps#2875

Open
rockbruno wants to merge 1 commit intobazelbuild:mainfrom
rockbruno:rochab/watch-run
Open

Add support for launching watchOS apps#2875
rockbruno wants to merge 1 commit intobazelbuild:mainfrom
rockbruno:rochab/watch-run

Conversation

@rockbruno
Copy link
Copy Markdown
Contributor

watchOS rules were missing executable info, but everything that existed for iOS could be ported to it with some minor changes related to payload paths and where the device information comes from.

Screenshot 2026-02-03 at 14 28 17

)
developer_path = xcode_select_result.stdout.rstrip()
devicectl_path = os.path.join(developer_path, "usr", "bin", "devicectl")
device_identifier = os.environ.get("BAZEL_APPLE_DEVICE_UDID", device_identifier),
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Context: https://bazelbuild.slack.com/archives/CD3QY5C2X/p1769867973947299

Instead of adding another build flag just for watchOS, I thought that using an env would be better overall. Can make this as a separate PR too.

@rockbruno rockbruno marked this pull request as ready for review February 6, 2026 10:11
ali-fareed pushed a commit to ali-fareed/rules_apple that referenced this pull request Mar 13, 2026
@rockbruno rockbruno force-pushed the rochab/watch-run branch 3 times, most recently from 127e0cf to 4fd1de3 Compare April 7, 2026 13:40
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