刚换了新的电脑,各种装载。当我用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哦

本文介绍如何解决使用CocoaPods更新代码时出现的依赖未指定Target错误。通过正确设置Podfile中的target,可以确保依赖库被正确引用。
1503

被折叠的 条评论
为什么被折叠?



