Jacob Rhoda
11/02/2023, 12:52 AMTimofey Solonin
11/02/2023, 4:00 PMPATH
environment variable is different when you are running from Xcode and therefore a different pod
executable is picked up.
One workaround that you could try is to:
• Uninstall the CocoaPods installed by system Ruby
sudo /usr/bin/gem uninstall cocoapods
• Create a symbolic link from Homebrew installation to /usr/local/bin
ln -s "$(brew --prefix)/bin/pod" /usr/local/bin
• Make sure which -a pod
shows /usr/local/bin/pod
Since /usr/local/bin
is in the default PATH
used by Xcode, the pod
executable should be picked up from the Homebrew installation via the symbolic link.Jacob Rhoda
11/02/2023, 4:04 PM/usr/local/bin
called pod
, 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 Solonin
11/03/2023, 7:02 PMcat "$(brew --prefix)/bin/pod"
Jacob Rhoda
11/03/2023, 7:51 PM