團隊開發(fā)中乖菱,經(jīng)常會有人在pod里泡一個自己需要的三方,而在我們更新代碼之后蛋疼的事情有時會是這樣的:
pod install 不成功斩启,提示:
$ pod install
Analyzing dependencies
[!] Unable to satisfy the following requirements:
-AliyunOSSiOS (~> 2.5.2) required by Podfile
None of your spec sources contain a spec satisfying the dependency: AliyunOSSiOS (~> 2.5.2).
You have either:
* out-of-date source repos which you can update with pod repo update.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
Note: as of CocoaPods 1.0, pod repo update does not happen on pod install by default.
反正就是你本地的repo里面的某個被別人pod過的類庫已經(jīng)過期或者別人pod的是一個新的版本的,你這里沒有
解決方式:
rm -rf ~/.cocoapods/repos/master
pod setup
pod install --verbose --no-repo-update