Skip to content

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

@ayroblu

Description

@ayroblu
$ devicectl list devices --json-output out.json
...
          "osBuildUpdate" : "23D771330a",
          "osVersionNumber" : "26.3.1 (a)",
...

Results in

2026-03-26 00:11:46.316 INFO Searching for a compatible device for platform type ios with minimum OS 18.0
Traceback (most recent call last):
  File "/private/var/tmp/_bazel_...app", line 586, in <module>
    main(
  File "/private/var/tmp/_bazel_...app", line 554, in main
    device = discover_best_compatible_device(
  File "/private/var/tmp/_bazel_...app", line 240, in discover_best_compatible_device
    version_int = os_version_number_to_int(device.os_version_number)
  File "/private/var/tmp/_bazel_...app", line 196, in os_version_number_to_int
    result = (result << 8) | int(component)
ValueError: invalid literal for int() with base 10: '1 (a)'

No idea why apple have bequeathed me such a version number but such is life

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions