cocoapod错误汇总
1. The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
解决方法:根据提示重新pod install
2.
CocoaPods could not find compatible versions for pod "ZLCategory":
In snapshot (Podfile.lock):
ZLCategory (= 0.1.1)
In Podfile:
ZLCategory
None of your spec sources contain a spec satisfying the dependencies: `ZLCategory, ZLCategory (= 0.1.1)`.
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --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
![](https://img.haomeiwen.com/i2587882/5e0ee31fea304ed9.png)
使用pod update命令
3.
/Users/zhaoliangchen/Desktop/anxin/Pods/Pods/Target Support Files/Pods-anxin/Pods-anxin.debug.xcconfig: unable to open file (in target "anxin" in project "anxin") (in target 'anxin')
![](https://img.haomeiwen.com/i2587882/336abedc6b9c1dc2.png)
解决方法:
![](https://img.haomeiwen.com/i2587882/0c30563b614fdabf.png)
选择正确的路径