I don\'t know why but now the default iphone simulator launched when I build the project is \"ipad\", but I want it to use iphone 3g instead.
Any way to set this pre
This worked for me. When I already have the app open on an iphone in "Simulator". I click File -> Open Simulator -> iOS 14.0 -> iPhone 8 (or iPad (7th generation))
I finally solved this problem myself.
First, install new version of xCode, which is xCode 4.
Then set project scheme to iphone simulator and run app in xCode several times.
And re-install xCode 3 and the problem will be gone away!
Try Project > Active Executable , and select the one you want the most.
In the chance that anyone reading this is building their app in react-native, the solution is the --simulator option.
For example:
$ react-native run-ios --simulator "iPhone X"
In Xcode,
Click Product -> Destination -> iOS Simulator -> Choose Device to run.
Then build and execute Xcode project.
It works..
2020 Fix:
File > Open Device > iOS > iPhone 11
and select the device. It will open up the device as another window but there won't be the Expo app.cmd + w
), then close the window with the device you would like.ctrl + c
then re-run Expo with expo start