Skip to content
This repository has been archived by the owner on Jul 25, 2023. It is now read-only.

Running on simulator

Igor Shaposhnik edited this page Jan 9, 2022 · 1 revision

Make sure that your project is ready to run.

We need to boot a simulator device first. We can get a list of available simulator devices with cargo xcodebuild:

cargo xcodebuild boot

Simulator device id is required. List of avaliable devices:
SimulatorDevice { udid: "4F57337E-1AF2-4D30-9726-87040063C016", name: "iPhone 8", state: Shutdown }
....

Run a simulator:

cargo xcodebuild boot 4F57337E-1AF2-4D30-9726-87040063C016

You can specify the target simulator in Cargo.toml:

[package.metadata.android]
device_id = "4F57337E-1AF2-4D30-9726-87040063C016"
device_type = "simulator"
Clone this wiki locally