Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Expo: Change default IOS simulator

I am new in expo and react-native Whenever i run the app from IOS simulator (inside expo) it always boots up the IphoneX. If i need to change the simulator,I have to open it through Xcode, is there any way we can change the default simulator ?

like image 295
Hena Shiekh Avatar asked Dec 08 '17 07:12

Hena Shiekh


People also ask

How do I run react native on specific iOS simulator?

Specifying a device​ 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 13" . If you wish to run your app on an iPhone SE (2nd generation), run npx react-native run-ios --simulator="iPhone SE (2nd generation)" .

How do I change simulator location in Xcode?

Allow location simulationSelect Run | Edit Configurations from the main menu or Edit Configurations from the run/debug configuration selector on the toolbar. Choose your configuration from the list and go to the Options tab. Select the Allow Location Simulation checkbox and click OK.

Can I install iOS simulator without Xcode?

The Simulator app requires several other large directories from the Xcode distribution in order to work at all. The only official way to install all of those properly is to install the entire SDK from the dmg.


1 Answers

expo included an option in recent commits regarding this issue.

now you can tap shift+i on terminal which expo server is running.It will list all simulators and you need to select your choice.

https://github.com/expo/expo-cli/pull/2541

like image 151
vamshi krishna Avatar answered Sep 21 '22 18:09

vamshi krishna