How to Get Phonegap Working on Mac OS X Mavericks

October 31, 2013

After I upgraded from Mountain Lion to Mavericks, all of a sudden, phonegap wasn’t working anymore.

Screenshot

I noticed that the problem was that it couldn’t find ant:

Screenshot

Ant has always come with Mac OS X, but something must have changed with the Mavericks update. So here’s how I got things working again by installing ant with homebrew. If you don’t already have homebrew, just install it with this command:

brew install wget

First run:

brew update
brew install ant

If you get this error:

Warning: No developer tools installed. You should install the Command Line Tools. Run xcode-select --install to install them.

Then just run this command:

xcode-select --install

And install the tool:

Screenshot Screenshot Screenshot Screenshot

Then everything should work fine.


Profile picture

Written by Adam Garrett-Harris, a podcaster and software engineer in Utah. You should follow him on Twitter