pod search 'xxxx'提示[!] Unable to find a pod with name, author, summary, or description matching `fmd
来源:互联网 发布:信息录入系统源码 编辑:程序博客网 时间:2024/06/06 11:45
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 pod with name, author, summary, or description matching `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!
整个过程参考了以下资源,感谢
0 0
- pod search 'xxxx'提示[!] Unable to find a pod with name, author, summary, or description matching `fmd
- Unable to find a pod with name, author, summary, or description matching `xxxx`
- [!] Unable to find a pod with name, author, summary, or description matching `AFNetworking`
- CocoaPod [!] Unable to find a pod with name, author, summary, or description matching `AFNetworking`
- 出现Unable to find a pod with name, author, summary, or description matching解决方法
- CocoaPods安装后出现[!] Unable to find a pod with name, author, summary, or description matching
- cocoapods找不到第三方库Unable to find a pod with name, author, summary, or description matching 'AFNetwork'
- [!] Unable to find a pod with name, author, summary, or ...
- [!] Unable to find a pod with name, author, summary, or descriptionmatching `AFNetworking`
- cocoapods找不到第三方库Unable to find a pod with name, author, summary, or descriptionmatching
- cocoapod升级的坑 && pod search :Unable to find a pod with name
- pod install或update 提示 [!] Unable to find a specification for xxxx
- 在cocoapods更新出现提示 Unable to find a specification for `xxxxx` Pod的目录清理一下就行了
- CocoaPods报错:[!] Unable to find a specification for xxxx
- POD
- POD
- POD
- pod
- 0419
- mysql自定义
- windows自动关机批处理
- tomcat7安装配置
- Linux中mount和umount的使用方法
- pod search 'xxxx'提示[!] Unable to find a pod with name, author, summary, or description matching `fmd
- cv_bridge依赖opencv版本的问题
- Android App 瘦身总结
- PHP 生成订单号的方法
- spring中事物管理的方式
- 两个类的相互引用
- Spark、Docker、Tensorflow开发者看过来,CCTC 2017报名开启
- Linux 文件基本属性
- 处理重新绘制图片模糊问题