Jacob Rhoda11/02/2023, 12:52 AM
Timofey Solonin11/02/2023, 4:00 PM
environment variable is different when you are running from Xcode and therefore a different
executable is picked up. One workaround that you could try is to: • Uninstall the CocoaPods installed by system Ruby
• Create a symbolic link from Homebrew installation to
sudo /usr/bin/gem uninstall cocoapods
• Make sure
ln -s "$(brew --prefix)/bin/pod" /usr/local/bin
which -a pod
is in the default
used by Xcode, the
executable should be picked up from the Homebrew installation via the symbolic link.
Jacob Rhoda11/02/2023, 4:04 PM
, which gets picked up by pretty much any shell. It’s a Ruby script that invokes the rubygems module and looks for the Gem. Since it’s not installed in the system version (I don’t want to use the System version of Ruby), it doesn’t find it. Unfortunately, the symbolic link idea won’t work and I’d probably just have to install cocoapods as a gem for the system version of Ruby as a workaround.
Timofey Solonin11/03/2023, 7:02 PM
cat "$(brew --prefix)/bin/pod"
Jacob Rhoda11/03/2023, 7:51 PM