Launching the "Run iOS on Simulator" target should launch the app on the open simulator
or
There should be a configuration in the launch.json config specifying the name of the emulator that should be launched.
Hi @peterjuras and thanks for your question.
Launching the "Run iOS on Simulator" target always starts the iPhone 6 simulator
To start running app extension is using react-native run-ios command. According to official React Native docs, in this case it is standard behavior:
You can specify the device the simulator should run with the --simulator flag, followed by the device name as a string. The default is "iPhone 6".
To run your app on different simulator you should create .vscode/settings.json file at the root of your project and fill it with the following content:
{
"react-native.ios.runArguments.simulator": [
"--simulator", "iPhone 7"
]
}
where iPhone 7 is the simulator name. To read more about specifying custom arguments for react-native run-* command, please, follow this documentation section.
Please let us know whether it helps you or not.
Thanks this solved my issue! 馃憤
Most helpful comment
Hi @peterjuras and thanks for your question.
To start running app extension is using
react-native run-ioscommand. According to official React Native docs, in this case it is standard behavior:To run your app on different simulator you should create
.vscode/settings.jsonfile at the root of your project and fill it with the following content:where
iPhone 7is the simulator name. To read more about specifying custom arguments forreact-native run-*command, please, follow this documentation section.Please let us know whether it helps you or not.