High Sierra 10.13: install Xcode 9 using the macOS App Store application then start Xcode.
Sierra 10.12: install Xcode 9 using the macOS App Store application then start Xcode.
These Xcode Downloads require you to sign in with your Apple ID and agree to the Software Agreement:
El Capitan 10.11: download and install Xcode 7.3.1 from Xcode 7.3.1 Download then start Xcode. NOTE: Xcode 8 CANNOT be used. See FS-9521.Yosemite 10.10: download and install Xcode 7.2.1 from Xcode 7.2.1 Download then start Xcode. Perform Rename Xcode Directory (As of Xcode 7.1).
Complete Xcode Installation
Create /usr/local Subdirectories
In OS X 10.10 Yosemite /usr/local is not supplied so it must be created by running the following commands in Terminal, sudo will prompt for the administrator password:
cd /usr sudo mkdir local # Create the /usr/local directory
The user name (owner) and group name of the /usr/local subdirectories created by this procedure must match the user and group FreeSWITCH™ will run under. This is typically the main user name of the Mac. Use the mkdir command to create the freeswitch and src directories and the chown command to change the owner. Copy/paste these commands in Terminal, sudo will prompt for the administrator password: