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

从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`

时间: 2024-10-07 16:21:43

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

The search request was unable to connect to the Search Service

使用Sharepoint进行搜索时,出现以下提示:The search request was unable to connect to the Search Service: 进入前端服务器,发现以下错误: Source: Office Server Search Event ID : 10040 Description: The last query machine has been taken out of rotation. Check previous event logs to de

打开vsphere client提示Unable connect to MKS

问题描述:客户有3台服务器,突然发现用户的vsphere client打开虚拟机控制台的时候,提示Unable connect to MKS:Failed to connect to server IP地址:902 解决方法:通过测试发现,有一台是没问题的,另外两台无法均报错,通过对比发现,出现问题的两台服务器网关地址填写错误导致的,把网关地址修改为正确的,发现问题得到解决.

Ubuntu 无法访问 win8 分区问题。 提示 Unable to access &quot; Partion X&quot;

系统背景 电脑型号:Thinkpad X230i 操作系统:win 8.1 中文版  + Ubuntu 13.10  双系统运行 问题描述 在Ubuntu系统下无法打开Win分区,提示以下信息 Unable to Access "WINDOWS" Error mounting /dev/sda3 at /media/dany/Data: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosu

logcat 提示 Unable to open log device &#39;/dev/log/main&#39;: No such file or directory

解决办法: Open: /system/etc/init.d/××× (not the same file on different ROMs, find the right file) Find the line that says: rm /dev/log/main Change the line to: # rm /dev/log/main (comments out the line, rm = remove, in case you were wondering) Save and r

android studio提示unable to run mksdcard sdk

如题,android studio提示unable to run mksdcard sdk sudo apt-get install lib32z1 lib32ncurses5 lib32stdc++6

问题-FireDAC连接Sqlite3提示“unable to open database file”

相关资料:http://www.dfwlt.com/forum.php?mod=viewthread&tid=1497&extra= 问题现象:FireDAC连接Sqlite3在开发电脑上没有问题,但将程序放在XP上就提示“unable to open database file”(后来发现别的WIN7也不行). 问题原因:可能是因为字符串编码问题. 问题处理:在FDConnection1控件上双击,出现的设置中,必须设置二项,"OpenMode=CreateUTF8"

CentOS 6.x下wget 下载提示 Unable to locally verify the issuer’s authority 完美解决方案

CentOS 6.x下wget 下载提示 Unable to locally verify the issuer's authority 完美解决方案 栏目:Linux 作者:小天 点击: 1,453 次 升级了wget 和 OpenSSL后,下载https链接的文件时出现提示:ERROR: cannot verify ftp.gnu.org's certificate,.... Unable to locally verify the issuer's authority. 如下图: 其实解决

分布式进阶 八 Linux提示Unable to locate package该如何处理

Linux提示Unable to locate package该如何处理? 当你在修改Linux软件源的时候,提示Unable to locate package错误,这是由什么原因导致的呢?又该如何解决,下面就给大家介绍下Linux下遇到Unable to locate package错误的情况该如何解决,一起来学习下吧. Linux提示Unable to locate package该如何处理? 刚开始接触ubuntu的朋友可能会按照一些入门文章的步骤更改软件源,可是此时安装软件的话会出现u

ubuntu系统下selenium打开火狐浏览器提示&#39;Unable to find a matching set of capabilities.解决方法

环境: 1.ubuntu系统 2.selenium 3.141.0 3.火狐浏览器驱动 geckodriver-v0.24.0-linux32 在Python中执行脚本: from selenium import webdriverbrowser = webdriver.Firefox() 结果提示:Message: Unable to find a matching set of capabilities Traceback (most recent call last):  File "/h