美文网首页
Cocoapods安装使用

Cocoapods安装使用

作者: AronChan | 来源:发表于2020-08-10 11:43 被阅读0次

安装

  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

兼容性问题

  • CocoaPods compatibility with Apple DTK (Apple Silicon) .
    解决方法:
  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

相关文章

网友评论

      本文标题:Cocoapods安装使用

      本文链接:https://www.haomeiwen.com/subject/wsdddktx.html