JSON::ParserError - 767: unexpec
2020-03-13 本文已影响0人
流年划过颜夕
很久没有更新Cocoapods了,最近更新出现了下诉问题
Updating local specs repositories
Adding spec repo `trunk` with CDN `https://cdn.cocoapods.org/`
Analyzing dependencies
...![cocoapodsError.png](https://img.haomeiwen.com/i3248106/f6d85421dc49854c.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
...
### 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