0

My Terminal had a fault, and I fixed it, but now I have an issue. When I type in Swift, an error message appears. Below this paragraph is what happened when i typed Swift. If anyone can help me, it would be much appreciated. Thank you!!!

Last login: Wed Jan 31 16:20:34 on ttys000 Groshvins-MBP:~ P.W$ swift

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun Groshvins-MBP:~ P.W$

(P.S I placed a paragraph to make it easier)

RajeshKumar R
  • 15,445
  • 2
  • 38
  • 70
G.Grover
  • 1
  • 1

1 Answers1

0

A quick google would have given you tons of results!

To fix it, Open terminal and fire following command:

xcode-select --install

That should help you.

Taken from here, here

Vivek Molkar
  • 3,910
  • 1
  • 34
  • 46