1
1

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 3 years have passed since last update.

CocoaPodsのインストールがLoadError/invoke_with_build_argsで失敗する

Posted at

エラー内容

$ sudo gem install cocoapods
ERROR:  Loading command: install (LoadError)
	dlopen(/Users/mu/.rbenv/versions/2.3.3/lib/ruby/2.3.0/x86_64-darwin18/openssl.bundle, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
  Referenced from: /Users/mu/.rbenv/versions/2.3.3/lib/ruby/2.3.0/x86_64-darwin18/openssl.bundle
  Reason: image not found - /Users/mu/.rbenv/versions/2.3.3/lib/ruby/2.3.0/x86_64-darwin18/openssl.bundle
ERROR:  While executing gem ... (NoMethodError)
    undefined method `invoke_with_build_args' for nil:NilClass

解決策

rubyのバージョンが2.3.3になっていたことが原因でした。
rubyのバージョンを2.6.3にしたらなおりました。(どのバージョンから直るかは検証していないです)

$ rbenv versions
  system
  2.2.3
* 2.3.3 (set by /Users/mu/.rbenv/version)
  2.5.1
  2.6.3
$ rbenv local 2.6.3
  system
  2.2.3
  2.3.3
  2.5.1
* 2.6.3 (set by /Users/mu/Documents/Cashari/app/.ruby-version)

これでsudo gem install cocoapodsしたらうまく通りました。

1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?