【Unity踩坑】在Mac上安装Cocoapods失败

在集成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即可。

相关推荐
LF男男9 小时前
GameManager.cs
unity
晴夏。10 小时前
c++调用lua的方法
c++·游戏引擎·lua·ue
RPGMZ1 天前
RPGMakerMZ 地图存档点制作 标题继续游戏直接读取存档
开发语言·javascript·游戏·游戏引擎·rpgmz·rpgmakermz
空中海1 天前
iOS 动态分析、抓包与 Frida Hook
ios·职场和发展·蓝桥杯
郝学胜-神的一滴1 天前
[简化版 GAMES 101] 计算机图形学 07:图形学投影完全推导
c++·unity·图形渲染·three.js·unreal engine
晴夏。1 天前
UE垃圾回收的全方面讲解(通俗易懂)【底层实现、触发方式、引用保持、优化、工具】
ue5·游戏引擎·ue·垃圾回收
空中海1 天前
iOS 静态逆向、IPA 结构与 Mach-O 分析
ios·华为·harmonyos
Mr -老鬼1 天前
EasyClick 双端自动化智能体|Android&iOS 全平台 EC 脚本开发助手
android·ios·自动化·易点云测·#easyclick·#ios自动化
空中海1 天前
01. iOS 逆向基础、环境搭建与授权
macos·ios·cocoa
空中海1 天前
iOS LLDB 调试、Mach-O、Runtime 与二进制分析
macos·ios·cocoa