【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即可。

相关推荐
恋猫de小郭5 小时前
Compose Multiplatform iOS 稳定版发布:可用于生产环境,并支持 hotload
android·flutter·macos·ios·kotlin·cocoa
cwl726 小时前
Unity WebGL、js发布交互
javascript·unity·webgl
虾球xz7 小时前
游戏引擎学习第263天:添加调试帧滑块
c++·学习·游戏引擎
WangMing_X7 小时前
Flutter开发IOS蓝牙APP的大坑
flutter·ios
AI逐月8 小时前
当新iPhone加入团队:一场 EAS CLI 与 Apple 生态的斗智斗勇
ios·cocoa·iphone
虾球xz8 小时前
游戏引擎学习第262天:绘制多帧性能分析图
c++·学习·游戏引擎
雪下的新火11 小时前
PBR材质-Unity/Blender/UE
unity·blender·材质·ue
帅次18 小时前
Flutter TabBar / TabBarView 详解
android·flutter·ios·小程序·iphone·taro·reactnative
安和昂1 天前
【iOS】 方法交换
macos·ios·cocoa
美狐美颜sdk1 天前
什么是美颜SDK?美颜SDK安卓与iOS端开发指南
android·人工智能·ios·音视频·美颜sdk·直播美颜sdk