美文网首页
JSON::ParserError - 767: unexpec

JSON::ParserError - 767: unexpec

作者: 流年划过颜夕 | 来源:发表于2020-03-13 15:20 被阅读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

相关文章

网友评论

      本文标题:JSON::ParserError - 767: unexpec

      本文链接:https://www.haomeiwen.com/subject/vmbkshtx.html