cocoapod升级的坑 && pod search :Unable to find a pod with name
2016-11-14 12:55
369 查看
最近使用cocoapod的时候遇到一个错误,提示说:当前版本0.39,要求是1.0.0版本。无奈只好升级。
在执行gem install xxx的时候会提示各种各样的错误,大部分原因是gem使用的是系统自带的,所以前面要加sudo gem install xxx。
cocoapod升级的时候,执行下图代码,并且指定安装本版即可:
查看版本信息
写入podfile文件,内容如下:
其中:‘VegoTV’ 为项目名称
最终截图如下:
pod安装完之后pod install可以正常执行使用,但是pod search却提示:Unable to find a pod with name, author, summary, or descriptionmatching。无论搜索什么都是提示这个错误。
解决办法:
注:(刚安装pod后,不要着急删除,先尝试pod install,第一次运行会自动执行部分初始化的工作),尝试pod install后若还是不行再进行如下尝试:
终端输入:
删除成功后,再执行
关于pod search失败的问题详见:http://blog.cocoachina.com/article/29127
在执行gem install xxx的时候会提示各种各样的错误,大部分原因是gem使用的是系统自带的,所以前面要加sudo gem install xxx。
cocoapod升级的时候,执行下图代码,并且指定安装本版即可:
sudo gem install -n /usr/local/bin cocoapods:1.1.1
查看版本信息
pod --version
写入podfile文件,内容如下:
platform :ios, '8.0' target 'VegoTV’ do pod "XCDYouTubeKit", "~> 2.5" pod 'Masonry' end
其中:‘VegoTV’ 为项目名称
最终截图如下:
pod安装完之后pod install可以正常执行使用,但是pod search却提示:Unable to find a pod with name, author, summary, or descriptionmatching。无论搜索什么都是提示这个错误。
解决办法:
注:(刚安装pod后,不要着急删除,先尝试pod install,第一次运行会自动执行部分初始化的工作),尝试pod install后若还是不行再进行如下尝试:
终端输入:
rm ~/Library/Caches/CocoaPods/search_index.json
删除成功后,再执行
pod search afn。
关于pod search失败的问题详见:http://blog.cocoachina.com/article/29127
相关文章推荐
- pod search 'xxxx'提示[!] Unable to find a pod with name, author, summary, or description matching `fmd
- [!] Unable to find a pod with name, author, summary, or ...
- Unable to find any test data conversion strategy for parameter with name ArrayList<XXX>
- [!] 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`
- 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 description matching
- iOS Unable to find a pod with name, author, summary, or descriptionmatching `afnetworking
- CocoaPods安装后出现[!] Unable to find a pod with name, author, summary, or description matching
- 出现Unable to find a pod with name, author, summary, or description matching解决方法
- 关于java.net.UnknownHostException: Unable to resolve host "xx": No address associated with hostname
- apache启动失败:Name or service not known: mod_unique_id: unable to find IPv4 address of "narkii"
- Cocoapod方式引入百川SDK -报错[!] Unable to find a specification for `xxx`
- No resource found that matches the given name (at 'layout_toLeftOf' with value '@id/tx_search_friend
- Unable to resolve host “<insert URL here>” No address associated with hostname
- )Name or service not known: mod_unique_id: unable to find IPv4 addr ess of "wb_three_cgi20"
- Conversion to Dalvik format failed with error 1 Type Unable to resolve target 'android-7'的解决办法
- tiles Unable to find the definition login.page'
- eclipse配置Android或OPhone提示Failed to find an AVD compatible with target 'Android 1.5'. Launch aborted.