Open BlkPingu opened 1 year ago
I would try this first. From the command line inside of the project type: flutter clean flutter pub get
and then try. Otherwise it looks like you have multiple versions of ruby running. From homebrew you have ruby 3.2.2 and I see a ruby-2.4.1
That worked, thanks! Took me a while to clean up, but rvm, rbenv and home-brew rubies were all used to compile different things and that's why nothing worked. It does now.
check gem env
for inconsistencies in PATH and env.
which -a ruby
to find out where rubies are installed
ruby -v
to find out which ruby is used. It should show the same ruby as rbenv versions
. Otherwise, check path and set global ruby.
It's advisable to have only one ruby version manager installed and not to use system ruby.
If you want to set rbenv global 3.1.0
after installing it (rbenv install 3.1.0 --verbose
) for example and use it to compile cocoapods, make sure rbenv is in the PATH by appending to the end of your .bash_profile
or .zshrc
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
this page will help you debug.
good luck and feel free to mention @ me if you need help with cocoapods and other build issues.
Please advise.