Setting up CocoaPods master repo (Sierra )

前端 未结 2 1970
悲哀的现实
悲哀的现实 2020-12-22 03:39

After upgrading to Sierra 10.12, doing a clean install from scratch, I am not able to install libraries using cocoapods, by making the \"pod install\" I get this: \"Setting

2条回答
  •  盖世英雄少女心
    2020-12-22 03:58

    In my first installation, I got the same problem too, it takes too much time in "setting up master repo". You can see it through "activity monitor" that it actually is downloading, but it seems the connection is slow from their server.

    Try these following steps, it solves my problem:

    1. pod setup
    

    It will do " setting up master " again, don't wait, continue these steps below

    2. Ctrl +C
    3. pod repo remove master
    4. cd ~/.cocoapods/repos 
    5. git clone --depth 1 https://github.com/CocoaPods/Specs.git master
    

    It takes around 5 minutes for me (I think it depends on internet connection), then I can do "pod install".

提交回复
热议问题