Skip to content

Fix rules_apple device runner crash on Rapid Security Response versions#2898

Merged
keith merged 1 commit intobazelbuild:mainfrom
lelandjansen:lelandjansen/bg-security-improvement-fix
Mar 26, 2026
Merged

Fix rules_apple device runner crash on Rapid Security Response versions#2898
keith merged 1 commit intobazelbuild:mainfrom
lelandjansen:lelandjansen/bg-security-improvement-fix

Conversation

@lelandjansen
Copy link
Copy Markdown
Contributor

@lelandjansen lelandjansen commented Mar 24, 2026

Devices running an Apple RSR update report OS versions like "18.3.1 (a)". The rules_apple device runner fails to parse the "(a)" suffix:

  ValueError: invalid literal for int() with base 10: '1 (a)'

Patch rules_apple 4.5.1 to strip non-numeric suffixes from each version component before integer conversion.

Test plan

bazel run an iOS application target on a physical device (builds, uploads, and runs)

Fixes #2900

Devices running an Apple RSR update report OS versions like "18.3.1 (a)".
The rules_apple device runner fails to parse the "(a)" suffix:
  ValueError: invalid literal for int() with base 10: '1 (a)'

Patch rules_apple 4.5.1 to strip non-numeric suffixes from each version
component before integer conversion.
@ayroblu
Copy link
Copy Markdown

ayroblu commented Mar 26, 2026

Works for me, can we merge this? Is this not breaking for everyone?

@keith keith merged commit 8c999a8 into bazelbuild:main Mar 26, 2026
8 checks passed
keith pushed a commit that referenced this pull request Mar 26, 2026
…versions (#2898)

Devices running an Apple RSR update report OS versions like "18.3.1
(a)". The rules_apple device runner fails to parse the "(a)" suffix:

```
  ValueError: invalid literal for int() with base 10: '1 (a)'
```

Patch rules_apple 4.5.1 to strip non-numeric suffixes from each version
component before integer conversion.

`bazel run` an iOS application target on a physical device (builds,
uploads, and runs)

Fixes #2900

(cherry picked from commit 8c999a8)
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.

Fails to bazel run to device due to (a) version

3 participants