很久没有更新Cocoapods了,最近更新出现了下诉问题
Updating local specs repositories
Adding spec repo `trunk` with CDN `https://cdn.cocoapods.org/`
Analyzing dependencies
...
...
### Error
...
JSON::ParserError - 767: unexpected token at ''
......

cocoapodsError.png
解决办法:
1.pod repo list 查看一下源列表,检测是否有2 repos
pod repo list

image.png
2.移除trunk源
pod repo remove trunk

image.png
3.修改Podfile,添加
source 'https://github.com/CocoaPods/Specs.git'

image.png
4.重新更新
Pod update

image.png