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

Source: Internet
Author: User
Tags git clone

To run the engineering tip error after updating the project from 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`

I then entered the Pod Setup manual installation, first appeared setting up CocoaPods master repo, but it also prompted the error:

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

It was really silent, and then I found the answer on GitHub.

Remove the local master first, and enter it in the terminalpod repo remove master

Then go to the path and enter in the terminalcd ~/.cocoapods/repos

Then download the spec on GitHub and replace the master in the path ~/.cocoapods/repos directory

Then in the terminal Input command:git clone--depth 1 https://github.com/CocoaPods/Specs.git master, waiting for the download to complete

OK, you can now update these third-party libraries correctly by executing pod install--no-repo-update .

But again input pod search Fmdb still is the hint cannot find, is because before pod search when generated Search_index.json, delete it can enter command:RM ~/library/caches/cocoapods /search_index.json Enter

Then enter pod search Fmdb again to prompt

Creating Search index for spec repo ' master '.

Then wait, and eventually the relevant third-party library appears and displays

Creating Search index for spec repo ' master '. done!

The whole process refers to the following resources, thank you??

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 ' tips [!] Unable to find a pod with name, author, summary, or description matching ' Fmdb '

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.