标签:
1.报错内容:
[!] The dependency `ReactiveCocoa (= 2.1.8)` is not used in any concrete target.
The dependency `objectiveflickr (= 2.0.4)` is not used in any concrete target.
The dependency `LinqToObjectiveC (= 2.0.0)` is not used in any concrete target.
The dependency `SDWebImage (= 3.6)` is not used in any concrete target.
修改方法:进入podsfile文件,进行如下修改
platform :ios, ‘7.0‘ target "RWTFlickrSearch" do pod ‘ReactiveCocoa‘, ‘2.1.8‘ pod ‘objectiveflickr‘, ‘2.0.4‘ pod ‘LinqToObjectiveC‘, ‘2.0.0‘ pod ‘SDWebImage‘, ‘3.6‘ end
这样就能运行成功了。
原因是:我们一般使用的pods都是使用淘宝安装的,最近淘宝不支持pods升级版本,因此使用时会报错,所以使用pods时必须指出所使用第三方库的target目标。
2.遇到这个问题时,首先打算的是重新安装,结果又遇到坑,发现报错如下:
ERROR: Could not find a valid gem ‘cocospods’ (>= 0), here is why:
Unable to download data from http://ruby.taobao.org/ - bad response Not Found 404 (http://ruby.taobao.org/latest_specs.4.8.gz)
查了查发现需要将http 替换成 https
作如下修改:
1.gem sources --remove http://ruby.taobao.org/
2.gem sources -a https://ruby.taobao.org/
3.查看源对不对
gem sources -l
4.再安装就好了
sudo gem install cocoapods
标签:
原文地址:http://www.cnblogs.com/Yun-Longcom/p/5748450.html