macOS, Rails: “Failed to build gem native extension”

If you have XCode 4 or later you will need to open it and go to Preferences -> Downloads -> Components and install the Command Line tools as they aren’t installed by default. Couldn’t install Rails until this happened.

Leave a Comment