cocoapods 报错

1、[!] ERROR: Parsing unable to continue due to parsing error: contained in the file located at xxx/xxx.lock

解决方法: 删除lock文件和pods文件夹,再重新pod install

2、重装cocoapods无法搜索三方库,提示:

[!] Unable to find a pod with name, author, summary, or description matching `afn`

解决方法:删除搜索索引: 

rm ~/Library/Caches/CocoaPods/search_index.json
原文地址:https://www.cnblogs.com/shenhongbang/p/7358342.html