CocoaPods安装后出现[!] Unable to find a pod with name, author, summary, or description matching
2017-06-30 18:03
633 查看
CocoaPods安装使用阿里ruby:
1.删除自带的ruby镜像,终端输入:
1.删除自带的ruby镜像,终端输入:
gem sources --remove https://rubygems.org/[/code]
2.添加阿里的镜像,终端输入:gem sources -a http://rubygems-china.oss.aliyuncs.com[/code]
3.用命令查看是否修改源成功gem sources -l
4.出现以下则成功*** CURRENT SOURCES *** http://rubygems-china.oss.aliyuncs.com[/code]
5.安装cocoapodssudo gem install cocoapods
6.出现以下则安装成功27 gems installed
7.其实在你安装CocoaPods执行pod install时,系统会默认操作pod setup,然而由于中国强大的墙可能会pod setup不成功。这时就需要手动执行pod setup指令pod setup
8.然后需要等很长时间
9.成功后执行pod search AFNetworking
10.可能会出现[!] Unable to find a pod with name, author, summary, or description matching `afnet`
11.pod setup成功后,依然不能pod search,是因为之前你执行pod search生成了search_index.json,此时需要删掉rm ~/Library/Caches/CocoaPods/search_index.json
12.删除成功后,再执行pod search afnetworking
13.输出:Creating search index for spec repo 'master'..
14.等待成功,成功之后输出Creating search index for spec repo 'master'.. Done!
15.然后会自动进入你搜索的第三方库。
相关文章推荐
- 出现Unable to find a pod with name, author, summary, or description matching解决方法
- [!] Unable to find a pod with name, author, summary, or description matching `AFNetworking`
- [!] Unable to find a pod with name, author, summary, or descriptionmatching `AFNetworking`
- pod search 'xxxx'提示[!] Unable to find a pod with name, author, summary, or description matching `fmd
- iOS Unable to find a pod with name, author, summary, or descriptionmatching `afnetworking
- Unable to find a pod with name, author, summary, or description matching
- CocoaPod [!] Unable to find a pod with name, author, summary, or description matching `AFNetworking`
- Git错误[!] Unable to find a pod with name, author, summary, or description matching `AFNetworking`
- [!] Unable to find a pod with name, author, summary, or ...
- 在cocoapods更新出现提示 Unable to find a specification for `xxxxx` Pod的目录清理一下就行了
- cocoapod升级的坑 && pod search :Unable to find a pod with name
- cocoapods找不到第三方库Unable to find a pod with name, author, summary, or descriptionmatching
- cocoapods找不到第三方库Unable to find a pod with name, author, summary, or description matching 'AFNetwork'
- 安装tcpreplay出现checking for libpcap... configure: error: Unable to find matching library for header fi
- Android Studio 导入项目 出现安装Error:Cause: failed to find target with hash string 'android-23' 等错误
- Python3.4 用 pip 安装lxml时出现 “Unable to find vcvarsall.bat ”
- windows下Python3.4安装numpy时出现 “Unable to find vcvarsall.bat ”
- 在内核编译时出现Unable to find the ncurses libraries or the
- Android Studio 导入项目 出现安装Error:Cause: failed to find target with hash string 'android-23' 等错误
- 安装lxml时出现 Unable to find vcvarsall.bat