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 '