码迷,mamicode.com
首页 > 数据库 > 详细

20161209pod search 'fmdb'提示[!] Unable to find a pod with name, author, summary, or description matching `fmdb`

时间:2016-12-09 11:46:25      阅读:377      评论:0      收藏:0      [点我收藏+]

标签:src   fatal   rip   命令   over   code   epo   更新   author   

从SVN上更新工程之后运行工程提示错误:

The sandbox is not in sync with the Podfile.lock. Run ‘pod install‘ or update your CocoaPods installation.`
平时只要在终端输入pod install就好,但是今天却出错了,提示[!] Unable to find a specification for `FMDB`
技术分享

然后我在终端输入pod search fmdb,结果竟然提示:[!] Unable to find a specification for `FMDB`
技术分享

接着我就输入pod setup手动安装,先出现Setting up CocoaPods master repo,但是它又提示错误:

fatal: ambiguous argument ‘HEAD‘: unknown revision or path not in the working tree.
Use ‘--‘ to separate paths from revisions, like this:
‘git <command> [<revision>...] -- [<file>...]‘
fatal: ambiguous argument ‘HEAD‘: unknown revision or path not in the working tree.
Use ‘--‘ to separate paths from revisions, like this:
‘git <command> [<revision>...] -- [<file>...]‘
fatal: ambiguous argument ‘HEAD‘: unknown revision or path not in the working tree.
Use ‘--‘ to separate paths from revisions, like this:
‘git <command> [<revision>...] -- [<file>...]‘
  $ /usr/bin/git -C /Users/lv/.cocoapods/repos/master pull --ff-only

技术分享

真的是无语了,然后在github上找到了答案.

先移除掉本地的master,在终端输入pod repo remove master

技术分享

 

然后转到路径下,在终端输入cd ~/.cocoapods/repos

再把github上的spec下载下来,替换路径~/.cocoapods/repos目录下的master

接着在终端输入命令:git clone --depth 1 https://github.com/CocoaPods/Specs.git master,等待下载完毕

技术分享

OK,现在再执行pod install --no-repo-update就能够正确更新这些第三方库了.

技术分享

 

但是再次输入pod search fmdb依然是提示找不到,是因为之前pod search的时候生成了search_index.json,把它删除掉即可输入命令:rm ~/Library/Caches/CocoaPods/search_index.json回车

然后再次输入pod search fmdb会提示

Creating search index for spec repo ‘master‘..

然后等待即可,最终会出现相关的第三方库,并显示

Creating search index for spec repo ‘master‘.. Done!

 技术分享

整个过程参考了以下资源,感谢??

http://blog.cocoachina.com/article/29127

http://www.jianshu.com/p/799ff45805f2

http://stackoverflow.com/questions/21022638/pod-install-is-staying-on-setting-up-cocoapods-master-repo

 

 

 

 



20161209pod search 'fmdb'提示[!] Unable to find a pod with name, author, summary, or description matching `fmdb`

标签:src   fatal   rip   命令   over   code   epo   更新   author   

原文地址:http://www.cnblogs.com/i-am-lvjiazhen/p/6148703.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!