iOS开发-pod install 出错 The dependency `AFNetworking (~> 2.6.0)` is not used in any concrete target.

低版本的cocoapods的Podfile文件pod install可以正常运行

platform :ios, '8.0'
pod 'AFNetworking'

高版本的cocoapods的Podfile文件必须添加target

platform :ios, '8.0'
target "targetName" do
pod 'AFNetworking'
end

  

posted @ 2016-07-16 10:52  feiling  阅读(1046)  评论(0编辑  收藏  举报