"No developer tools found" on latest Mavericks/Xcode

Updated to latest Mavericks and Xcode 5. Attempts to pull or push against a git repository now give me this error:

xcode-select: error: no developer tools were found at '/Applications/Xcode.app', and no install could be requested (perhaps no UI is present), please install manually from 'developer.apple.com'.

Xcode 5 is installed in /Applications, and the tools are present (/Applications/Xcode.app/Contents/Developer/usr/bin/git exists, for instance). Tried running `sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer`; no effect.

Any ideas? Thanks!

Update: I am using the embedded version of git:

git preferences screenshot

Switching to system git (1.8.3.4) gives me the same error.

Update #2: Tried:

  • Uninstalling (via AppCleaner) and reinstalling SourceTree
  • Downloading and installing the latest Xcode Command Line Tools package from developer.apple.com

This doesn't seem to be SourceTree specific; I get the same error if I try to run `git fetch` from the command line. Other git commands seem to work, so it must be something related to connecting to the remote server. Still completely stumped.

3 answers

1 accepted

Ah, I figured it out: was missing the Command Line Tools package on the SERVER. There is no indication in the error message itself where it originated, and I made the assumption that it was on my client box.

Easy fix, then: xcode-select --install (on the server, that is)

Sorry for the drama; glad to have it fixed!

open ur terminal and do this:

PATH=/usr/local/git/bin:$PATH
export PATH

This won't work as SourceTree runs in its own process and thus own environment.

This doesn't really make any sense: git isn't installed at that location.

Hey Jason,

This should work fine as has done in our Xcode 5 tests. This means your SourceTree preferences are set to use system Git. You could get ST working by specifying 'embedded Git' in your Git preferences.

As for the missing Git, perhaps you need to re-specify system Git and choose the location as /usr/bin/git. I've got a funny feeling Xcode has moved its own Git installation (command line tools) elsewhere which is why SourceTree might be failing as it's looking up the place it used to be.

Cheers

Updated my question with version information: I was set to use the embedded git, and switching to system git still gives me the same error.

Suggest an answer

Log in or Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

274 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot