- Install Xcode
- Accept the xcode license with
sudo xcodebuild -license
- Install qt from: https://download.qt.io/new_archive/qt/5.5/5.5.0/
- Add the following line in .bashrc or .zshrc or whatever ->
export PATH="$HOME/Qt5.5.0/5.5/clang_64/bin/:$PATH"
- Reload the terminal or source .zshrc
- Go to the directory
/Applications/Xcode.app/Contents/Developer/usr/bin/
- Make the symlink:
ln -s xcodebuild xcrun
- Install the lib with
gem install capybara-webkit
If any problem accepting the license occurs, here are one solution to it: https://medium.com/@vschroeder/xcode-select-error-tool-xcodebuild-requires-xcode-but-active-developer-directory-fb7d3408c80b