8

terminal

I was basically trying to create a new React Native project but my simulator won't open and terminal throws this error

Please help, what is wrong and how to fix it?

user11153432
  • 153
  • 1
  • 1
  • 7

2 Answers2

31

SOLUTION 1

Go to this location

Xcode > Preferences > Locations

And assigning the Command Line Tools

enter image description here

SOLUTION 2

In Terminal, try this.

xcode-select -s /Applications/Xcode.app

/Applications/Xcode.app is your Xcode.app path.

Akila Devinda
  • 5,054
  • 3
  • 19
  • 35
4
xcode-select -s /Applications/Xcode.app

with /Applications/Xcode.app is your Xcode.app path.

user11153432
  • 153
  • 1
  • 1
  • 7