I am using macOS Mojave and when I try to install cocoapods using gem I am getting the following error.
Building native extensions. This could take a whi
sudo xcode-select --switch /Library/Developer/CommandLineTools ruby -rrbconfig -e 'puts RbConfig::CONFIG["rubyhdrdir"]'