pod on macOS

Last updated on November 26, 2023 pm

  • install brew

    1
    /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
  • 安装 ruby,否则会报如下错误:

    ERROR: macbook gem install, You have to install development tools first

    1
    brew install ruby
  • install pod

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    gem sources -l
    gem sources --remove https://gems.ruby-china.org/
    gem sources -a https://gems.ruby-china.com
    sudo gem update -n /usr/local/bin —system

    sudo gem install -n /usr/local/bin cocoapods

    gem list
    sudo gem install -n /usr/local/bin cocoapods -v 0.39.0 # 安装指定版本

    # or TODO test
    brew install cocoapods
  • use pod

    1
    2
    3
    pod repo update

    pod install

pod on macOS
https://cgabc.xyz/posts/3e8a8632/
Author
Gavin Gao
Posted on
March 1, 2022
Licensed under