cocopods管理第三方库。the dependency `xxx` is not used in any concrete target.

今早使用cocopods时报错:Re-creating CocoaPods due to major version update.
Updating local specs repositories。the dependency xxx is not used in any concrete target.
这是由于Pods升级,引入了target的概念,必须在Podfile中指定target, 此步必失败。
我们先pod --version 看下自己的pod版本如果是大于等于1.0.0就会有这个问题。解决方式:修改podfile文件格式如下:

source 'https://github.com/CocoaPods/Specs'

  platform :ios, ‘8.0’
  use_frameworks!
    target '工程名称(target名称)'do
  pod 'UMengSocial', '~> 4.4'
  pod ‘SDWebImage’, '~> 3.7’
  pod ‘PureLayout’
  pod ‘Alamofire’, '~> 3.0’
  pod ‘SSZipArchive’
  pod 'MBProgressHUD', '~> 0.9.2'

    end

你可能感兴趣的:(cocopods管理第三方库。the dependency `xxx` is not used in any concrete target.)