1. ??The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
解決方法:根據(jù)提示重新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
使用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')
解決方法:
選擇正確的路徑
4. pod update時候顯示詳細(xì)信息,并跳過Updating spec repo `master`
pod update --verbose --no-repo-update
5. pod update 的時候?Cloning into 'master'?速度慢
使用清華鏡像
https://mirror.tuna.tsinghua.edu.cn/help/CocoaPods/
$ cd~/.cocoapods/repos?
$ pod repo remove master
//清華的鏡像
$ git clone https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git master
//coding的鏡像
$?git?clone?https://git.coding.net/hging/Specs.git?master
最后進(jìn)入自己的工程,在自己工程的podFile第一行加上:
source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
6. 取消代理
終端輸入 git config --global --unset http.proxy
取消代理.
7.?curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
rm-rf~/Library/Caches/CocoaPods/
pod repo update