You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use devicectl to install and launch *_application targets on a physical device (#2527)
In Xcode 15, Apple introduced a new command-line tool that allows
management of physical devices. This makes it possible to install and
launch *_application targets on a physical device without third-party
solutions.
With these changes, you can now use `bazel run //:iOSApp
--ios_multi_cpus=arm64`.
Previously, this command would attempt to launch the application on a
simulator and fail due to an invalid architecture.
Bazel currently lacks a specific flag for specifying device identifiers
suitable for this purpose. I created a [PR to
Bazel](bazelbuild/bazel#23599) introducing an
`--ios_device` flag. However, it's unlikely to be accepted since it's a
platform-specific flag. If it is accepted, we can utilize it in the
future.
For the current implementation, I added astring_flagthat allows passing
a device identifier. It can be used like
this:--@build_bazel_rules_apple//apple/build_settings:ios_device=<uuid|ecid|serial_number|udid|name|dns_name>
.
---------
Signed-off-by: Vadim Smal <vadims@spotify.com>
Co-authored-by: Luis Padron <heyluispadron@gmail.com>
Co-authored-by: Brentley Jones <github@brentleyjones.com>
0 commit comments