cocoapod錯誤匯總

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

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

推薦閱讀更多精彩內(nèi)容