修复cocoapods - Unable to satisfy the following requirements:

更新项目的pod文件后,出现问题

$pod update Update all pods Analyzing dependencies [!] 
Unable to satisfy the following requirements: - `MagicalRecord(~> 6.1.0)` required by `Podfile`

查了一下问题,可能是下载的到本地的pod Repo太老了.找不到对应的第三方库.试着用pod update也不能解决.

使用pod repo update -verbose又果断卡住

$pod repo update --verbose $ /usr/bin/git rev-parse >/dev/null 2>&1 Updating spec repo `master`
 $ /usr/bin/git pull --ff-only error: Your local changes to the following files would be overwritten by merge: CocoaPods-version.yml 

最后只好把本地的Repo删掉,从新下载

$rm -fr ~/.cocoapods/repos/master 
$pod setup

你可能感兴趣的:(修复cocoapods - Unable to satisfy the following requirements:)