刚换了新的电脑,各种装载。当我用cocoapods更新原来的代码的时候,报出如下错误。
The dependency `` is not used in any concrete target
The dependency `AFNetworking ` is not used in any concrete target
出这个错是告诉我们我们所用的库没有指定target。
在创建Podfile的时候,用这种格式使用
platform :ios, '9.0'
target 'App' do
pod 'AFNetworking', '~> 2.6'
pod 'ORStackView', '~> 3.0'
pod 'SwiftyJSON', '~> 2.3'
end
继续执行pod install / pod update 就都可以了!注意改成自己target哦