CocoaPods error:The dependency '' is not used in any concrete target
2016-05-16 17:33
465 查看
转自: http://www.cnblogs.com/Xylophone/p/5112841.html
内容提要:
podfile升级之后到最新版本(1.0.0),pod里的内容必须明确指出所用第三方库的target,否则会出现The dependency '' is not used in any concrete target这样的错误。
以下从三个步骤陈述:
1. Podfile升级
查看pod版本:
pod 升级(此时是升级到1.0.0.beta.2版本):
2. 错误内容:
我的Podfile的内容是:
pod install后出现错误The dependency `` is not used in any concrete target
3. 修改方法:
Podfile内容更改:
这样再运行pod install,就会成功了。
内容提要:
podfile升级之后到最新版本(1.0.0),pod里的内容必须明确指出所用第三方库的target,否则会出现The dependency '' is not used in any concrete target这样的错误。
以下从三个步骤陈述:
1. Podfile升级
查看pod版本:
pod --version
pod 升级(此时是升级到1.0.0.beta.2版本):
sudo gem install cocoapods --pre
2. 错误内容:
我的Podfile的内容是:
platform :ios, '7.0' pod 'ReactiveCocoa', '2.1.8' pod 'objectiveflickr', '2.0.4' pod 'LinqToObjectiveC', '2.0.0' pod 'SDWebImage', '3.6'
pod install后出现错误The dependency `` is not used in any concrete target
pod install /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/rbconfig.rb:213: warning: Insecure world writable dir /Applications/Cocos/tools/ant/bin in PATH, mode 040777 Re-creating CocoaPods due to major version update. Updating local specs repositories Analyzing dependencies [!] 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.
3. 修改方法:
Podfile内容更改:
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
这样再运行pod install,就会成功了。
相关文章推荐
- C++中的const函数与const_cast的矛盾
- oracle数据库创建表代码示例
- 环境变量2
- 小白排序之快速排序
- 2012年亚洲区域赛东京站
- 穷养富养知乎见解
- div垂直居中的N种方法 单行/多行文字(未知高度/固定高度)
- fopen打开文件失败过程分析
- 关于春雨线下诊所的创意策划
- java经验之谈
- 【新版】Inventor二次开发学习指南
- VC修改窗口属性
- js判断数据类型的几种方法及应用场景分析
- hdu 1116 (有向欧拉图) 欧拉图问题
- 并发下诡异的HashMap
- 安卓图片优化
- 四十九 常用内建模块 urllib
- 构建之法阅读笔记04
- mysql case when
- make 2>&1 > log.txt 命令解析