I am trying to install fastlane. I have Xcode installed. I installed fastlane using the command sudo gem install fastlane. I now go in
fastlane
sudo gem install fastlane
Get the full path of the fastlane executable from the command line:
which fastlane
Add it to the shell profile, restart shell.