FBSimulatorControl
Facebook (via Peter Steinberger):
The original use-case for
FBSimulatorControl
was to boot Simulators to run End-to-End tests withWebDriverAgent
. AsFBSimulatorControl
is a Mac OS X framework, it can be linked to from inside any Mac OS Library, Application, orxctest
target. There may be additional use-cases that you may find beyond UI Test Automation.
FBSimulatorControl
works by linking with the privateDVTFoundation
,CoreSimulator
andDVTiPhoneSimulatorRemoteClient
frameworks that are present inside the Xcode bundle. Doing this allowsFBSimulatorControl
to talk directly to the same APIs that Xcode andsimctl
do. This, combined with launching the Simulator binaries directly, means that multiple Simulators can be launched simultaneously. Test targets can be made that don’t depend on any Application targets, or that launch multiple Application targets. This enables running against pre-built and archived Application binaries, rather than a binary that is built by a Test Target.