很久没有更新Cocoapods了,最近更新出现了下诉问题
Updating local specs repositories
Adding spec repo `trunk` with CDN `https://cdn.cocoapods.org/`
Analyzing dependencies
...![cocoapodsError.png](https://upload-images.jianshu.io/upload_images/3248106-f6d85421dc49854c.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
...
### Error
...
JSON::ParserError - 767: unexpected token at ''
......
解决办法:
1.pod repo list 查看一下源列表,检测是否有2 repos
pod repo list
2.移除trunk源
pod repo remove trunk
3.修改Podfile,添加
source 'https://github.com/CocoaPods/Specs.git'
4.重新更新
Pod update