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