在集成Unity Ad时,如果是第一次在iOS上集成,会在Mac上安装Cocoapods。
安装时提示下面的错误:
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.
也是其中drb需要Ruby版本在2.7及以上。
解决方法:
在终端中运行:brew install cocoapods,手动安装cocoapods即可。