I reinstalled xcproj with
brew uninstall xcproj
brew install xcproj
This installed the current version (0.2.1) but I need the version 0.1 (compatibility issues with my current project). I tried the methods described in Homebrew install specific version of formula? but couldn't find how to install earlier versions of xcproj. How can I install version 0.1?