趣味开发

CocoaPods报错:The dependency `` is

2018-03-28  本文已影响5人  孟华007

内容摘要

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,就会成功了。

上一篇 下一篇

猜你喜欢

热点阅读