平常使用pod的時(shí)候稠诲,會(huì)有很多錯(cuò)誤,在此準(zhǔn)備把遇到的錯(cuò)誤飒炎,逐一寫(xiě)出來(lái)埋哟,以供查找:
[!] Unable to satisfy the following requirements:
- `CYLTabBarController` required by `Podfile`
- `CYLTabBarController (= 1.14.1)` required by `Podfile.lock`
None of your spec sources contain a spec satisfying the dependencies: `CYLTabBarController, CYLTabBarController (= 1.14.1)`.
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.
這個(gè)錯(cuò)誤是因?yàn)樗玫膸?kù),已經(jīng)有了更新,而Podfile文件并沒(méi)有更改其下載版本(Podfile文件過(guò)期)赤赊,我們需要update一下
[dayaodeMacBook-Pro:dayao$ pod update
Update all pods
Updating local specs repositories
更新時(shí)間比較長(zhǎng)闯狱,請(qǐng)耐心等待,更新完成之后抛计,就可以用了