CocoaPods报错:The dependency `` is not used in any concrete target

原创 2016年06月01日 23:06:40

内容提要:

  podfile升级之后到最新版本,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(you target name)" do
pod ReactiveCocoa, 2.1.8
pod objectiveflickr, 2.0.4
pod LinqToObjectiveC, 2.0.0
pod SDWebImage, 3.6
end

这样再运行pod install,就会成功了。

版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

CocoaPods报错:The dependency `AFNetworking ` is not used in any concrete target

CocoaPods报错:The dependency `` is not used in any concrete target. CocoaPods再遇困难,前几天电脑重装了系统,所有的开发工具就都...
  • sjl_leaf
  • sjl_leaf
  • 2016年01月12日 18:40
  • 62860

CocoaPods安装第三方SDK报错[!] The dependency `ReactiveCocoa (~> 4.1.0)` is not used in any concrete target.

CocoaPods安装第三方SDK报错: [!] The dependency `ReactiveCocoa (~> 4.1.0)` is not used in any concrete ...

CocoPods报错:[!] The dependency `XXX` is not used in any concrete target.

CocoPods报错:[!] The dependency `XXX` is not used in any concrete target. 删除Podfile.lock文件后重新pod insta...
  • Yj_sail
  • Yj_sail
  • 2016年08月30日 00:47
  • 601

The dependency `ReactiveCocoa` is not used in any concrete target.(Cocoapods报错)

The dependency `` is not used in any concrete target The dependency `AFNetworking ` is not used in a...

CocoaPods安装库时出现问题:The dependency `OpenCV (~> 3.0.0)` is not used in any concrete target的解决

ex: The dependency `` is not used in any concrete target The dependency `AFNetworking ` is not used...

Cocoapods: The dependency `AFNetworking ` is not used in any concrete target

CocoaPods的安装 在RubyGems安装之后进行CocoaPods的安装,打开终端,键入以下命令($后边的为输入的) $ sudo gem install cocoa po...

The dependency `XXXX` is not used in any concrete target.

在使用cocoapod安装依赖库的时候经常会报这个错误,如果遇到这个错误,需要在podfile中添加两行:target:"PodDemo" doend注意:这里的PodDemo要写成你的工程文件名,我...

cocopods遇到The dependency `XXXXXX` is not used in any concrete target的报错处理

The dependency `` is not used in any concrete target The dependency `AFNetworking ` is not used i...

Cocoapos: The dependency `AFNetworking ` is not used in any concrete target

//配置方法 1.打开终端,输入 $ gem sources --remove https://rubygems.org/ 等有反应之后再敲入以下命令 $ gem sources -a https...

MyEclipse导入项目报错Target runtime com.genuitec.runtime.generic.jee60 is not defined.

如题,有时候在导入别人的项目到自己的工作空间中会报这个错误,简单记录一下这个问题以及类似问题(xxx is not defined.)的解决方案。 错误如下图: 首先,进入我们My...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:CocoaPods报错:The dependency `` is not used in any concrete target
举报原因:
原因补充:

(最多只允许输入30个字)