Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mac terminal returns "xcrun: error: unable to exec Xcode native xcrun (Exec format error)."

Mac OS X V. 10.9.4 2.4 GHz 2 GB RAM

Im trying to use Git through my mac terminal and it keeps returning this error every time I submit a git command: "xcrun: error: unable to exec Xcode native xcrun (Exec format error).".

I already installed git and github in my mac. Im somehow new to programming I i don't really understand whats causing this error. Its getting very frustrating.

like image 756
Daniel Avatar asked Aug 21 '14 00:08

Daniel


1 Answers

The following works for me:

sudo xcode-select --reset
like image 193
Arakelyan Hovsep Avatar answered Sep 23 '22 21:09

Arakelyan Hovsep