6

I'm trying to launch the ios simulator to try an React Native App. I did't hace XCode installed until now.

To install my simulator, I had installed XCode, and I started a project "Simulator", to push "next" I needed a company name, I put "simu", after that, I clicked on "Project > Run", and I could see my simulator run.

In my CLI, when I launch the command yarnpkg run ios, I get this error:

Simulator is installed but is identified as 'simu.Simulator'; don't know what that is.
23:55:17: Failed to start simulator:

Unable to verify Xcode and Simulator installation.

I removed all my simulators, but the name persists, I had search how to change the identificator, but I dont find results.

I would like to know if I can change the "simu.Simulator" to Simulator, someone can help me?

BigBugCreator
  • 909
  • 4
  • 16
  • 31

4 Answers4

16

The issue you might be facing is there might not be command line tools selected in your xCode Preferences. In Preferences -> Location, Choose command line tool

enter image description here

Sumit Oberoi
  • 3,365
  • 1
  • 17
  • 18
6

By default, after installing Xcode command-line not selected, so open Xcode and go to Preferences >> Locations and set Command Line Tools...

This worked for me in MAC High Sierra, Xcode Version 9.3:

Xcode

Press i to open iOS emulator...

Press a to open Android device or emulator, or i to open iOS emulator.

And You can see a cool new iPhone simulator like below image:

React Native prints, I'm Alireza Dezfoolian, a Front End Developer!

Alireza
  • 93,149
  • 25
  • 259
  • 162
0

For Expo 32, the other solutions didn't work for me.

This SO answer solved it for me: Just open the Simulator before invoking it from Expo.

Fellow Stranger
  • 28,875
  • 31
  • 150
  • 214
0

This worked for me with IOS Ph 11 simulator and subsequently for all the other devices