Unable to install pods using a legacy Cocoapods version

我怕爱的太早我们不能终老 提交于 2019-12-11 06:14:41

问题


Working an a iOS project and don't have time to fix potential pod conflicts, getting the following error when running 'pod install'

The `master` repo requires CocoaPods 1.0.0 -  (currently using 0.39.0)

Using --no-repo-update flag seems to help but throws another warning

https://github.com/CocoaPods/CocoaPods/issues/6163

Unable to find specification for 

... manually replaced te pod master repo .. but didn't work ..

Unable to find a specification in CocoaPods

Being forced to use the latest version ... (--verbose .. also states that I need to update)

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


回答1:


As iHulk states in his comment:

Use source "https://github.com/CocoaPods/Old-Specs" at top of your pod file




回答2:


Try this command in your terminal

sudo gem install -n /usr/local/bin cocoapods


来源:https://stackoverflow.com/questions/40633770/unable-to-install-pods-using-a-legacy-cocoapods-version

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!