百度搜索很好有相关的答案,stackover 上几乎也很少相关的
应该就是这种错误很少有人出现 既然自己出现了 记录一下
pod init 之后 出现以下输出
[!] Oh no, an error occurred.
Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=uninitialized+constant+Nanaimo%3A%3AReader%3A%3AStringScanner&type=Issues
If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new
Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md
Don't forget to anonymize any private data!
最后在https://github.com/CocoaPods/CocoaPods/issues/6168找到答案
Run gem install xcodeproj:1.4.1
, that should fix things for you