Max Heinritz
Max Heinritz

Reputation: 417

How to run specific iPhone version with create-react-native-app?

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

Upvotes: 0

Views: 368

Answers (1)

bennygenel
bennygenel

Reputation: 24660

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.

Upvotes: 1

Related Questions