podfile升级之后到最新版本,pod里的内容必须明确指出所用第三方库的target,否则会出现The dependency `` is not used in any concrete target这样的错误。
没有指定arget的报错:
/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 `UMengSocialCOM (~> 5.1)` is not used in any concrete target.
The dependency `UMengAnalytics` is not used in any concrete target.
The dependency `RTLabel (~> 1.0.1)` is not used in any concrete target.
The dependency `AlipaySDK-2.0 (~> 15.0.2)` is not used in any concrete target.
修改方法:
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