美文网首页
m1 pods安装

m1 pods安装

作者: 冬的天 | 来源:发表于2022-11-03 15:44 被阅读0次

    1:安装homebrew
    /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

    2:安装rvm
    curl -L get.rvm.io | bash -s stable
    source ~/.bashrc
    source ~/.bash_profile

    报错:curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to raw.githubusercontent.com:443
    解决:sudo vim /etc/hosts
    然后i进入编辑,
    添加:
    54.169.195.247 api.github.com
    151.101.76.133 raw.githubusercontent.com
    按esc,:wq保存退出

    rvm list known
    rvm install 3.0.0
    arch -x86_64 rvm install 3.0.0
    rvm use 3.0.0
    3:
    sudo arch -x86_64 gem install ffi
    sudo arch -x86_64 gem install -n /usr/local/bin cocoapods
    sudo gem install -n /usr/local/bin cocoapods
    pod --version

    相关文章

      网友评论

          本文标题:m1 pods安装

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