美文网首页
cocoaPods抽风

cocoaPods抽风

作者: Berning | 来源:发表于2019-10-04 14:09 被阅读0次

pod install

  • [!]Unable to add a source with url
$ pod install
pod[!] Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `master`.You can try adding it manually in `~/.cocoapods/repos` or via `pod repo add`.

$ pod repo add master https://github.com/CocoaPods/Specs.git
[!] To setup the master specs repo, please run `pod setup`.
$ pod setup

  • [!] Unable to find a specification
$ pod install
Analyzing dependencies
[!] Unable to find a specification for `AFNetworking~>3.0`

You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.


// 解决办法:

// 移除本地master
sudo rm -rf ~/.cocoapods/repos/master
// 移除本地缓存
sudo rm -rf ~/Library/Caches/CocoaPods/
// 重新setup,如果网速较慢,可以在后面加上 --verbose
pod setup
  • pod[!] The master repo is not a git repo.
$ pod install
pod[!] The `master` repo is not a git repo.
$ rm -rf ~/.cocoapods/repos/master
pod setup

pod search抽风

$ pod search SDWebImage
[!] Unable to find a pod with name, author, summary, or description matching `SDWebImage `

//1.执行
$ pod setup

//2.如果没有解决问题,就继续第二步
cd  ~/Library/Caches/CocoaPods/
rm search_index.json

//OK.

如果是安装多个Xcdoe,还需要选择Xcode的路径

sudo xcode-select -switch /Applications/Xcode.app/

在终端里输入下方命令可以知道Xcode的路径:

xcode-select -p

相关文章

  • cocoaPods抽风

    pod install [!]Unable to add a source with url [!] Unable...

  • CocoaPods 抽风重置 Commend Tips

    Clearing a specific pod “pod 缓存清理”“FortifySec”时,对于不指定版本的p...

  • iOS. Cocoapods抽风导致的问题

    最近在使用cocoapods的时候除了一些问题。在此处记录一下! 问题场景1:我是由于换了电脑,之前的电脑配置太低...

  • 抽风

    好看,绝非肤浅的美丽,它是一个人剥离了外表之后的素养,是放在瀚海人群里也能一眼分辨出的气场,这是灵魂的样子。

  • 抽风

    整整两天的时间,我的简书都处于瘫痪状态——既不能看简友们的文章,也不能自己更文,喏,一打开就是这付死样子,一个小圆...

  • 抽风

    我在阳台抽烟,我抽一半,风抽一半。 我没跟风计较,可能风也有烦恼吧。 我事后越想越气,于是抽起风来。

  • 抽风

    点了一根烟 我抽半根,风抽半根 我想,风也有它的烦恼吧 可以,风有烦恼,为何要抽我的烟 于是,我开始抽风

  • 抽风

    令人奇怪的天气 令人疯狂的天气 令人纠结的天气 全部凑在了最近一段时间内 我在苦夏的日子夜不能寐,日日晕晕沉沉 相...

  • 抽风

    惊觉 快一个月木有抽风了 可是沮丧 难过 问自己 将来的某一天 你得对我多好 我才会觉得我值 多情自古空余恨 可是...

  • 当抽风不抽风

    当抽风不抽风。晚安很久不这么熬夜的看东西,很久没这么认真的读文字了对于你们的感情,起初我是羡慕,甚至是有些嫉妒的。...

网友评论

      本文标题:cocoaPods抽风

      本文链接:https://www.haomeiwen.com/subject/ubyfyctx.html