陈斌彬的技术博客

Stay foolish,stay hungry

使用CocoaPods遇到的几个坑

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

错误内容

/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.

查了查好像是配置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,就会成功了。

原因是podfile升级到最新版本,pod里的内容必须明确指出所用第三方库的target