Kingfisher不支持webP格式的圖片,此時(shí)需要借助于KingfisherWebP狂丝,當(dāng) pod "KingfisherWebP" 的時(shí)候,發(fā)現(xiàn)會(huì)卡在 pod "libwebp"。
解決辦法如下:
1袁翁、打開 前往文件夾 輸入一下內(nèi)容
/用戶/mac/.cocoapods/repos/cocoapods
image.png
2、然后依次點(diǎn)擊Specs-->1-->9-->2-->libwebp
3婿脸、找到你pod的對(duì)應(yīng)的版本粱胜,打開libwebp.podspec.json文件。
image.png
image.png
4狐树、用 https://github.com/webmproject/libwebp.git 替換里面的git路徑焙压,下圖標(biāo)出的地方
image.png
5、然后再進(jìn)行pod install