1.pod无法搜索第三方库

WeChat172d9a620bf5aa9a0cd7ed14824cc53c.png
2.删除本地索引
energydeiMac:~ energy$ pod search afn
Setup completed
[!] Unable to find a pod with name, author, summary, or description matching `afn`
// 移除本地索引
energydeiMac:~ energy$ rm ~/Library/Caches/CocoaPods/search_index.json
// 查询本地索引
energydeiMac:~ energy$ pod repo list
master
- Type: git (unknown)
- URL: https://github.com/CocoaPods/Specs.git
- Path: /Users/energy/.cocoapods/repos/master
// 移除master索引
energydeiMac:~ energy$ pod repo remove master
// 更新
energydeiMac:~ energy$ git clone https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master
网友评论