0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【Bundle】Catalina にアップデートしたらbundle exec pod installが失敗した話

0
Posted at

概要

Mac OSX Catalinaにアップデートした後に

$ bundle exec pod install

を叩くと

Failed to execute process '/usr/local/bin/bundle'. Reason:
The file '/usr/local/bin/bundle' specified the interpreter '/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby', which is not an executable command.

と出てしまう。

どうやら使っているインストールされているRubyのバージョンは2.6だけど、
コマンドが参照しているのが2.3で端末に存在していないので実行出来ないという事だと思います。

解決方法

bundleの再インストールで解決しました!

# bundleの削除
$ sudo rm -rf /usr/local/bin/bundle
# bundle, bundlerの再インストール
$ gem install bundle
$ gem install bundler
# 再度実行してみる
$ bundle exec pod install

出来ました!

備考

これの解決の前に

xcode-select --install

も実行しました。

これだけでは解決しなかったのですが、これも必要なのかもしれません。
上記の再インストールで出来なかった人はやってみても良いかも。

誰かのお役に立てば。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?