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
最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容