pod command

pod 基礎使用命令

  1. 建立Podfile文件ruby

    1
    pod init
  2. 使用命令打開Podfile文件spa

    1
    open -a Xcode Podfile
  3. 搜索pod 庫code

    1
    pod search 庫名
  4. 更新本地Repo庫rem

    1
    pod repo update
  5. 安裝pod 庫get

    1
    2
    pod install
    pod install --verbose --no-repo-update
  6. 升級pod 庫it

    1
    2
    pod update
    pod upadte --verbose --no-repo-update

cocoapods庫安裝命令

  • 檢查ruby源io

    1
    gem sources -l
  • 刪除原有ruby源table

    1
    gem sources -remove https://rubygems.org/
  • 添加你找到的可用鏡像源class

    1
    gem sources -a http://rubygems-china.oss.aliyuncs.com
  • 安裝cocoapods基礎

    1
    2
    sudo gem install cocoapods
    pod setup
  • 查看cocoapods當前版本號

    1
    pod --version
  • 更新gem到最新版本

    1
    sudo gem update --system
  • 更新cocoapods版本

    1
    sudo gem update cocoapods

查看已安裝的cocoapods庫

說明Cocoapods在將它的信息下載到 ~/.cocoapods裏;
cd 到該目錄裏

  1. 查看 repo list

    1
    pod repo list
  2. 查看文件大小

    1
    du -sh
  3. 查看安裝列表

    1
    pod list
相關文章
相關標籤/搜索