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

相关推荐
锐意无限2 小时前
Swift 扩展归纳--- UIView
开发语言·ios·swift
符哥20082 小时前
用Apollo + RxSwift + RxCocoa搭建一套网络请求框架
网络·ios·rxswift
文件夹__iOS6 小时前
AsyncStream 进阶实战:SwiftUI 全局消息流极简实现
ios·swiftui·swift
在路上看风景8 小时前
31. Unity 异步加载的底层细节
unity
2501_916008898 小时前
深入解析iOS机审4.3原理与混淆实战方法
android·java·开发语言·ios·小程序·uni-app·iphone
忆江南9 小时前
Flutter深度全解析
ios
山水域9 小时前
Swift 6 严格并发检查:@Sendable 与 Actor 隔离的深度解析
ios
天人合一peng10 小时前
Unity中做表头时像work中整个调整宽窄
unity
楚轩努力变强10 小时前
iOS 自动化环境配置指南 (Appium + WebDriverAgent)
javascript·学习·macos·ios·appium·自动化
小李也疯狂1 天前
Unity 中的立方体贴图(Cubemaps)
unity·游戏引擎·贴图·cubemap