git error "unable to locate xcodebuild" after a fresh OS X Mavericks upgrade

tol4trob picture tol4trob · Oct 29, 2013 · Viewed 45.8k times · Source

When I try to run previously working git commands, I get this:

dyld: Symbol not found: _sqlite3_intarray_bind
  Referenced from: /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
  Expected in: /opt/local/lib/libsqlite3.dylib
 in /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
git: error: unable to locate xcodebuild, please make sure the path to the Xcode folder is set correctly!
git: error: You can set the path to the Xcode folder using /usr/bin/xcode-select -switch

How can I fix this?

Answer

sushilprj picture sushilprj · Aug 3, 2015

This works for me sudo xcode-select --switch /Library/Developer/CommandLineTools/