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

内容摘要

podfile升级之后到最新版本,pod里的内容必须明确指出所用第三方库的target,否则会出现The dependency `` is not used in any concrete target这样的错误。

我的Podfile的内容是

inhibit_all_warnings!
platform :ios, '7.0'
pod 'jastor', '0.2.1' 

pod install后出现错误The dependency `` is not used in any concrete target

Analyzing dependencies
[!] The dependency `jastor (= 0.2.1)` is not used in any concrete target.
...........................

Podfile内容更改

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
inhibit_all_warnings!
def cocoating_pods    
   pod 'CocoaAsyncSocket' , '7.6.0'    
end

target 'Develop' do    
    cocoating_pods
end

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

你可能感兴趣的:(CocoaPods报错:The dependency `` is not used in any concrete target)