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

The dependency ``is not used in any concrete target 

The dependency `SDWebImage `is not used in any concrete target

根据网友博客,首先更新一下cocoapods

sudo gem install cocoapods --pre

然后改写Podfile

platform :ios, '8.0'

#use_frameworks!个别需要用到它,比如reactiveCocoa

target  'MApp'  do

 pod 'AFNetworking', '~> 2.6'

pod 'ORStackView', '~> 3.0'

 pod 'SwiftyJSON', '~> 2.3'

end


里面的 MApp 记得替换为自己攻城里面的target。这样就基本OK了,执行pod install / pod update 就都可以了。(use_frameworks! 这个是个别需要的,这里修改一下,可以把我上面的代码中的这一行【删除】

下面是另外一种写法,

platform:ios,'8.0'

#use_frameworks!个别需要用到它,比如reactiveCocoa

def pods 

   pod'AFNetworking','~> 2.6'

  pod'ORStackView','~> 3.0'

   pod'SwiftyJSON','~> 2.3'

end

target 'MyApp' do 

   pods

end

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