Panic: unknown Ruby installation

Hi,

I’m trying to use Bitrise-CLI with a local project but I’m getting the following error when I run a fastlane step:

panic: unknown Ruby installation

goroutine 1 [running]:
main.main()
/var/folders/xt/s6r881rx7bjfcw_mds72nxyw0000gp/T/bitrise3104507911/step_src/main.go:194 +0x2c90

I installed Ruby and Go via homebrew, and have the following exports to my .zshrc

# Go
export GOPATH=$HOME/golang
export GOROOT=/opt/homebrew/opt/go/libexec
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin

# Ruby
if [ -d "/opt/homebrew/opt/ruby/bin" ]; then
  export PATH=/opt/homebrew/opt/ruby/bin:$PATH
  export PATH=`gem environment gemdir`/bin:$PATH
fi

my ruby -v is: ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [arm64-darwin21]
I’m using macOS 12.3.1

Does anyone know how I can fix this?

When I run fastlane, without the bitrise-cli, it works normally.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.