安装CocoaPods后出现ArgumentError

时间:2019-12-28 16:01:28

标签: ruby macos cocoapods macos-catalina

升级到Catalina后,我尝试安装CocoaPods。

我用brew安装节点和守望者,然后使用sudo gem安装cocoapods。

在终端中使用pod命令时,出现以下错误:

11: from /Users/myuser/.gem/ruby/2.6.0/bin/pod:23:in `<main>'
10: from /Users/myuser/.gem/ruby/2.6.0/bin/pod:23:in `load'
 9: from /Users/myuser/.gem/ruby/2.6.0/gems/cocoapods-1.8.4/bin/pod:55:in `<top (required)>'
 8: from /Users/myuser/.gem/ruby/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/command.rb:49:in `run'
 7: from /Users/myuser/.gem/ruby/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/command.rb:130:in `verify_minimum_git_version!'
 6: from /Users/myuser/.gem/ruby/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/command.rb:116:in `git_version'
 5: from /Users/myuser/.gem/ruby/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/executable.rb:143:in `capture_command'
 4: from /Users/myuser/.gem/ruby/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/executable.rb:117:in `which!'
 3: from /Users/myuser/.gem/ruby/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/executable.rb:96:in `which'
 2: from /Users/myuser/.gem/ruby/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/executable.rb:96:in `each'
 1: from /Users/myuser/.gem/ruby/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/executable.rb:97:in `block in which'

/Users/myuser/.gem/ruby/2.6.0/gems/cocoapods-1.8.4/lib/cocoapods/executable.rb:97:在`expand_path'中:用户bin不存在(ArgumentError)< / p>

如果有人能给我提示如何解决我的问题,我将不胜感激。

0 个答案:

没有答案