Unity一直尝试运行iOS解析器来安装Cocoapods。
在终端中,我检查了以下内容。我也重新安装了以下内容。
- Ruby版本:Ruby 3.2.2(2023-03-30修订版e51014 f9 c 0)[arm 64-darwin 22]
- RBenv Global:3.2.2
- Pod版本:1.13.0
gem install cocoapods --user-install
WARNING: You don't have /Users/theyashiverse/.gem/ruby/2.6.0/bin in your PATH,
gem executables will not run.
ERROR: Error installing cocoapods:
The last version of drb (>= 0) to support your Ruby & RubyGems was 2.0.5. Try installing it with `gem install drb -v 2.0.5` and then
running the current command again
drb requires Ruby version >= 2.7.0. The current ruby version is 2.6.10.210.
字符串
我的朋友也在使用相同的repo,他的端没有遇到任何问题。他运行的ruby版本是2.6.10.210。
我的理解是,它被写入代码或文件夹层次结构,但我不知道在哪里查看或编辑它的Unity。我已经尝试使用chatgpt和谷歌巴德没有运气。
这也是我第一次使用Mac。
我正在运行Unity版本2022.1.18f1
1条答案
按热度按时间d5vmydt91#
Unity在
/usr/local/bin
文件夹中查找Cocoapods,然后在/Users/theyashiverse/.gem/ruby/2.6.0/bin
中查找。首先,删除现有的cocoapods gem。
字符串
尝试从终端安装cocoapods到/usr/local/bin
型
然后重新启动Unity并重试。