pod on macOS

本文最后更新于:May 7, 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

  • Proxy

    1
    2
    git config --global http.proxy socks5://127.0.0.1:1080
    git config --global http.https://github.com.proxy socks5://127.0.0.1:1080

  • install xcode command line tools

    1
    2
    3
    4
    5
    6
    brew upgrade

    sudo rm -rf /Library/Developer/CommandLineTools

    sudo xcode-select --install
    sudo xcodebuild -license


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