'React Native ios Simulator - Simulator is installed but is identified as '; don't know what that is

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?



Solution 1:[1]

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

Solution 2:[2]

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!

Solution 3:[3]

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.

Solution 4:[4]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sumit Oberoi
Solution 2
Solution 3 Fellow Stranger
Solution 4 Alfred David