Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
729 views
in Technique[技术] by (71.8m points)

installation - Setting up CocoaPods master repo (Sierra )

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 up CocoaPods repo master". I hope you can help me. Thank you.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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".


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...