Cocoapods安装使用

2020-08-10  本文已影响0人  AronChan

安装

  1. Gem切换国内Taobao镜像仓库
gem sources --remove https://rubygems.org/
gem sources -a https://gems.ruby-china.com/
  1. 为了验证你的Ruby镜像是并且仅是taobao,可以用以下命令查看:
gem sources -l

只有在终端中出现下面文字才表明你上面的命令是成功的:


  1. 安装Cocoapods
sudo gem install -n /usr/local/bin cocoapods

兼容性问题

  1. Locate Terminal.app in Finder. (Applications->Terminal.app)
  2. Right-click and choose Get Info
  3. Check the “Open using Rosetta“
  4. Quit all instances of Terminal app and run it again


    Using Rosetta
上一篇下一篇

猜你喜欢

热点阅读