fastlane: Can't uninstall fastlane, binaries are still installed

I’m trying to brew install fastlane, but first I want to remove the old version (which I didn’t install). I’ve tried

  • gem uninstall faslane
  • sudo gem uninstall faslane
  • I’ve tried downloading the installer and running uninstall
  • I’ve removed the rbenv stuff from my ~/.bash_profile

But when I run fastlane --version i get _fastlane 1.105.2. And which fastlane give me /usr/local/bin/fastlane

(And running fastlane env just gives me an error)

echo $PATH
/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home/bin:/Volumes/data-ssd/java-bin/apache-maven-3.2.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

ls -alrt /usr/local/bin/ reveals:

-rwx-w----   1 npomfret  admin     496 28 Jul  2016 pem
-rwx-w----   1 npomfret  admin     520 18 Aug  2016 commander
-rwx-w----   1 npomfret  admin     547 18 Aug  2016 krausefx-ipa
-rwx-w----   1 npomfret  admin     508 30 Aug  2016 supply
-rwx-w----   1 npomfret  admin     524 23 Sep 12:38 screengrab
-rwxr-xr-x   1 root      admin     561  6 Oct 19:46 fastlane-credentials
-rwxr-xr-x   1 root      admin     512  6 Oct 19:46 frameit
-rwxr-xr-x   1 root      admin     500  6 Oct 19:46 cert
-rwxr-xr-x   1 root      admin     500  6 Oct 19:46 sigh
-rwxr-xr-x   1 root      admin     512  6 Oct 19:46 produce
-rwxr-xr-x   1 root      admin     504  6 Oct 19:46 pilot
-rwxr-xr-x   1 root      admin     504  6 Oct 19:46 match
-rwxr-xr-x   1 root      admin     516 12 Oct 22:42 xcpretty
-rwxr-xr-x   1 root      admin     512 12 Oct 22:42 🚀
-rwxr-xr-x   1 root      admin     520 12 Oct 22:42 spaceship
-rwxr-xr-x   1 root      admin     520 12 Oct 22:42 spaceauth
-rwxr-xr-x   1 root      admin     516 12 Oct 22:42 snapshot
-rwxr-xr-x   1 root      admin     500 12 Oct 22:42 scan
-rwxr-xr-x   1 root      admin     516 12 Oct 22:42 fastlane
-rwxr-xr-x   1 root      admin     512 12 Oct 22:42 deliver
-rwxr-xr-x   1 root      admin     497 12 Oct 22:43 💪
-rwxr-xr-x   1 root      admin     496 12 Oct 22:43 gym

Where did these come from? And which uninstaller would get rid of them? Is it possible which ever uninstaller is responsible, it’s failing because some of these executables are owned by root?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 16 (3 by maintainers)

Most upvoted comments

The following worked for me:

  1. uninstall with brew/gem
  2. clone https://github.com/fastlane/packaged-fastlane
  3. run ./uninstall from packaged-fastlane folder

Not sure if I found them all, but this is what I did…

I started with the list of “executables” from the website, then ran:

grep -l fastlane /usr/local/bin/*

to find the helper ones that contain a note about being part of fastlane.

Below is the complete script I used to get rid of everything:

#!/usr/bin/env bash

rm /usr/local/bin/{produce,\
cert,\
sigh,\
snapshot,\
fastlane,\
fastlane-credentials,\
frameit,\
gym,\
deliver,\
pem,\
spaceship,\
pilot,\
boarding,\
match,\
scan,\
🚀,\
💪,\
🎉}

UPDATE: I found a couple more emoji binaries. They said they were installed by gym, I assume as part of the fastlane gem instal.

NOTE: If you edit the command, don’t leave any extra spaces anywhere as bash gets confused.