0

Based on How to change the default Xcode iphone simulator when testing in the terminal?, I'd expect something like yarn run ios --simulator="iPhone 8" to work but it doesn't.

I'm using "react-native-scripts": "1.5.0".

Max Heinritz
  • 397
  • 2
  • 11

1 Answers1

1

As says in documentation for exp Command Line Interface;

-i, --ios Opens your app in Expo in a currently running iOS simulator on your computer

So basically you can start your desired simulator before running it with expo and expo will detect the currently running simulator and then deploy your code.

bennygenel
  • 23,896
  • 6
  • 65
  • 78
  • thanks! i guess there is no way to specify it from the command line then? i'm writing a readme for my team and would prefer one-step "run this command" vs "open the simulator, pick a device, then run this command". – Max Heinritz Nov 03 '17 at 18:04
  • Command line interface has couple of commands and they have options. Check them out maybe there is a way to give device name – bennygenel Nov 03 '17 at 18:06