This command builds and installs an
.app bundle on a emulator/simulator or device, and optionally launches it.
All the parameters for
buck build also apply to
.apkwith the default activity (Android) or the
.appbundle (iOS) after installation.
(-e)Use this option to use emulators/simulators only.
(-d)Use this option to use real devices only. This option works only with Android devices. It does not work with iOS devices.
(--udid)Use device or emulator/simulator with specific serial or UDID number.
Builds and installs the APK for an
android_binary or target.
apk_genrule or an
android_instrumentation_apk, builds it, and installs it by running
adb install <path_to_the_APK>.
--activity <fully qualified class name>
.apkwith the specified activity after installation.
(-x)Install APK on all connected devices and/or emulators (multi-install mode).
(-T)Number of threads to use for adb operations. Defaults to number of connected devices.
Builds and installs an .app for an
apple_bundle, builds it, and installs it by copying it to a simulator or device as appropriate.
For device support, you need to first build the
fbsimctl utility from FBSimulatorControl and set
[apple].device_helper_path to its location.
(-n)Use simulator with specific name (defaults to