when running pod install I get The `master` repo requires CocoaPods 0.32.1, try updating but still in 0.31

后端 未结 5 1908
遇见更好的自我
遇见更好的自我 2020-12-01 03:43

Iam trying to install cocoa pods in a xcode project, but when doing:

$ pod install

I get the following error:

Setting up Co         


        
5条回答
  •  南方客
    南方客 (楼主)
    2020-12-01 04:13

    This is what worked for me.

    1. Uninstall CocoaPods (choose to uninstall all versions):

      sudo gem uninstall cocoapods

    2. Remove old master repo:

      sudo rm -fr ~/.cocoapods/repos/master

    3. Install CocoaPods without sudo:

      gem install --user-install cocoapods

    4. Setup CocoaPods and Master repo:

      pod setup

    NOTE: Step 3 is going to make sure you install pod under your user name instead of root which sudo does.

提交回复
热议问题