ignite
ignite copied to clipboard
[Maverick] No simulator found with name "iPhone 13"
Describe the bug
When trying to run a new Maverick project with Xcode 14, I get this:
npx ignite-cli new PizzaApp
cd PizzaApp
yarn ios
Ignite version
Maverick
Additional info
no
Workaround is to run:
yarn ios --simulator="iPhone 14"
Is it possible this has to do with Xcode using an old workspace from a previous PizzaApp?
This is baked into RN it seems?
https://reactnative.dev/docs/running-on-simulator-ios#specifying-a-device
https://stackoverflow.com/questions/68933467/npx-react-native-run-ios-is-picking-non-existing-simulator
-
Open Xcode workspace for existing project and select the device at the top

-
Select
Add Additional Simulators...from the menu
-
Create an
iPhone 13simulator
-
Run
yarn iosoryarn expo:startand you're good to go
@jamonholmgren do we want to leave this issue open? This seems like an upstream issue to me
I did just run into this trying to do Detox tests. Perhaps there is a way we could detect in Ignite whether the default simulator is available and print a warning?
@joshuayoes perhaps we can pipe the output from applesimutils --list and see if it matches the detox config?
add this
"iphone13": "npx react-native run-ios --simulator=\"iPhone 13 Pro\"", in your script in package.json file and then run "npm run iphone13"
@frankcalise I like that solution, it appears we may be able to install simulators for Xcode.
So perhaps the following logic may be good to add somewhere in the new command:
- Check if
iPhone 13is inapplesimutils --listorxcrun simctl list devicesoutput - Warn user that default iOS simulator is not installed
- Give sample output of workaround (
yarn ios --simulator="iPhone 14") - Offer to run command to install default iPhone 13 simulator to Xcode (
xcrun simctl create "iPhone 13" "iPhone 13" iOS 15.5
add this "iphone13": "npx react-native run-ios --simulator="iPhone 13 Pro"", in your script in package.json file and then run "npm run iphone13"
@Gurminder-Kaler I'm not sure that will solve what we want. I'm trying to use your command with iPhone 7, which is not a simulator on my machine, and my xcode just resolves to the first one that isn't that version
Closing as "not our bug"