hey folks, I'm at the very first step of creating ...
# multiplatform
e
hey folks, I'm at the very first step of creating a kmp project and
kdoctor
fails the cocoapods step. the error I got is suggesting the following stackoverflow answer: https://stackoverflow.com/questions/64901180/how-to-run-cocoapods-on-apple-silicon-m1/66556339#66556339 I have the
export PATH="/opt/homebrew/opt/ruby/bin/ruby:$PATH"
line in the
.zshrc
file and when I execute the
/opt/homebrew/opt/ruby/bin/ruby -v
line I get the correct version. However, when I execute the
which ruby
I get the
/usr/bin/ruby
Any suggestion on this? Thanks
e
PATH should contain the directory, not the binary
also I thought the homebrew installer is supposed to put something like
Copy code
eval "$(brew shellenv)"
into your shell config which should set everything up
e
so I should have
export PATH="/opt/homebrew/opt/ruby
? trying
e
no you should have /bin (the directory containing the executable binaries)
e
export PATH="/opt/homebrew/opt/ruby/bin:$PATH"
resolved the issue. ❤️
e
and probably it would be better to use rbenv anyway