pod 安裝完成后拐袜,會提示Setup completed,但是pod search afnetworking時谎亩,會提示[!] Unable to find a pod with name, author, summary, or description matching afnetworking
這是因為 pod setup成功后會生成~/Library/Caches/CocoaPods/search_index.json文件炒嘲,刪除該文件,然后重新搜索就可以了匈庭。
終端輸入
rm ~/Library/Caches/CocoaPods/search_index.json
然后再執(zhí)行pod search 就可以了
具體可參考文章:http://www.reibang.com/p/b5e5cd053464?url_type=39&object_type=webpage&pos=1