Pod search ' xxxx ' prompt [!] Unable to find a pod with name, author, summary, or description matching ' FMD

Source: Internet
Author: User
Tags json git clone
The sandbox isn't in sync with the Podfile.lock. Run ' pod install ' or update your CocoaPods installation. '
Usually as long as the terminal input pod install is good, but today is wrong, prompt [!] Unable to find a specification for ' FMDB '


Then I entered the pod search Fmdb in the terminal, the result unexpectedly prompt: [!] Unable to find a pod with name, author, summary, or description matching ' 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 in the terminal enter Pod repo remove master

Then go to the path and enter the CD in the terminal ~/.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 following resources are referenced throughout the process, thanks

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.