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".

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

2 Comments

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".
Command line interface has couple of commands and they have options. Check them out maybe there is a way to give device name

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.