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

相关推荐
爱吃小胖橘5 小时前
Unity网络开发--超文本传输协议Http(1)
开发语言·网络·网络协议·http·c#·游戏引擎
BrightMZM8 小时前
记录一下Unity的BUG,Trial Version
unity·bug·打包·trial
namehu9 小时前
React Native 应用性能分析与优化不完全指南
android·react native·ios
▍ 小太阳 ☼10 小时前
Unity2022Navigation系统打开方式
unity·游戏引擎
qq_1702647514 小时前
unity升级对ab变更的影响
unity·游戏引擎
游戏开发爱好者815 小时前
BShare HTTPS 集成与排查实战,从 SDK 接入到 iOS 真机调试(bshare https、签名、回调、抓包)
android·ios·小程序·https·uni-app·iphone·webview
AA陈超15 小时前
虚幻引擎5 GAS开发俯视角RPG游戏 P05-04 使用效果应用游戏标签
c++·游戏·ue5·游戏引擎·虚幻
2501_9160088915 小时前
iOS 26 系统流畅度实战指南|流畅体验检测|滑动顺畅对比
android·macos·ios·小程序·uni-app·cocoa·iphone
Digitally16 小时前
如何处理旧 iPhone:安全地回收或重新利用
安全·ios·iphone