How to use a specific version of CocoaPods

前端 未结 2 938
谎友^
谎友^ 2021-01-31 04:21

Is it possible to somehow specific the version of CocoaPods I\'d like to use when upgrading or installing a Podfile? I\'ve encountered several times where Podfiles work correctl

2条回答
  •  无人及你
    2021-01-31 05:05

    the ultimate solution:

    1. run a bash script to completely uninstall your current verison (Optinal)

      for i in $( gem list --local --no-version | grep cocoapods  ); do
          sudo gem uninstall $i;
      done   
      sudo gem uninstall xcodeproj
      
    2. install a specific verison of CocoaPod

      gem install cocoapods -v 0.39.0
      

提交回复
热议问题