Error installing nokogiri - Fastlane

Solution? 3 easy steps

Posted by Billy on September 22, 2016


A couple of days ago I was about to install fastlane on my laptop to start automate my app store deploys. It didn’t take long before I was hit with the first error:

“ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension.”

Solution (for OS X El capitan)

I solved this by with the following 3 steps:

  • xcode-select --install
  • sudo gem install nokogiri -v '1.6.8' -- --use-system-libraries=true --with-xml2-include=/Applications/
  • sudo gem install fastlane --verbose