Mac OS 笔记

rvm、Ruby、gem、CocoaPods的安装与卸载

安装rvm

shell 复制代码
curl -fsSL https://get.rvm.io | bash -s stable --ruby --autolibs=enable --auto-dotfiles

rvm -v  # 查看版本

安装脚本

shell 复制代码
/usr/bin/ruby -e "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install)"

安装Ruby、gem

shell 复制代码
ruby -v                 # 查看ruby版本
rvm list                 # 查看已安装的ruby版本
rvm list known     #  查看可安装的ruby版本
# 改成国内源
gem sources --remove https://rubygems.org/
gem sources -a https://mirrors.aliyun.com/rubygems/
# 升级
sudo gem update --system

rvm install x.x.x       安装指定版本ruby

CocoaPods安装

shell 复制代码
sudo gem install cocoapods # 安装CocoaPods

pod --version              # 查看CocoaPods版本
pod setup  							 # 安装pod
sudo gem update cocoapods  # 更新CocoaPods
报错:ERROR: While executing gem ... (NoMethodError) undefined method `satisfied_by?' for nil:NilClass

升级,sudo gem update --system

rvm、Ruby、gem、CocoaPods的安装与卸载

相关推荐
_李小白10 分钟前
【Android FrameWork】第二十天:AudioTrack
android·gitee
走在路上的菜鸟17 分钟前
Android学Dart学习笔记第十节 循环
android·笔记·学习·flutter
LiuYaoheng18 分钟前
【Android】RecyclerView 刷新方式全解析:从 notifyDataSetChanged 到 DiffUtil
android·java
春卷同学24 分钟前
打砖块 - Electron for 鸿蒙PC项目实战案例
android·electron·harmonyos
wei1155643 分钟前
compose自定义控件
android
m0_632482501 小时前
Android端测试类型、用例设计、测试工具(不涉及自动化测试)
android
走在路上的菜鸟2 小时前
Android学Dart学习笔记第九节 Patterns
android·笔记·学习·flutter
Sheffi662 小时前
RunLoop 深度探索:线程为什么不会自动退出
macos·objective-c·cocoa
AllBlue2 小时前
unity导出成安卓工程,集成到安卓显示
android·unity·游戏引擎
QQ_4376643142 小时前
常见题目及答案
android·java·开发语言