美文网首页
cocopods管理第三方库。the dependency `x

cocopods管理第三方库。the dependency `x

作者: extanstory | 来源:发表于2016-09-05 11:10 被阅读0次

今早使用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 `x

      本文链接:https://www.haomeiwen.com/subject/mkdrettx.html