2018-07-17

――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

Command

  1. /Users/zhoujie/.rvm/rubies/ruby-2.4.1/bin/pod search afnet

Report

  • What did you do?

  • What did you expect to happen?

  • What happened instead?

Stack

  1. CocoaPods : 1.5.2
  2. Ruby : ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin17]
  3. RubyGems : 2.6.14
  4. Host : Mac OS X 10.13.4 (17E199)
  5. Xcode : 9.3 (9E145)
  6. Git : git version 2.15.1 (Apple Git-101)
  7. Ruby lib dir : /Users/zhoujie/.rvm/rubies/ruby-2.4.1/lib
  8. Repositories : master - https://github.com/CocoaPods/Specs.git @ ad59ffc34a816fee4a40b87ee88a07ef080bde34
  9. PodTest - https://gitee.com/oflizheng/PodTest.git @ 3a6f3d445cc2cf26509ecf45329f0e06fae4ba07

Plugins

  1. cocoapods-deintegrate : 1.0.2
  2. cocoapods-plugins : 1.0.0
  3. cocoapods-search : 1.0.0
  4. cocoapods-stats : 1.0.0
  5. cocoapods-trunk : 1.3.0
  6. cocoapods-try : 1.1.0

Error

  1. JSON::ParserError - 743: unexpected token at ''
  2. /Users/zhoujie/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/json/common.rb:156:inparse'`
  3. /Users/zhoujie/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/json/common.rb:156:inparse'`
  4. /Users/zhoujie/.rvm/gems/ruby-2.4.1@global/gems/cocoapods-core-1.5.2/lib/cocoapods-core/source/manager.rb:251:instored_search_index'`
  5. /Users/zhoujie/.rvm/gems/ruby-2.4.1@global/gems/cocoapods-core-1.5.2/lib/cocoapods-core/source/manager.rb:187:inupdated_search_index'`
  6. /Users/zhoujie/.rvm/gems/ruby-2.4.1@global/gems/cocoapods-core-1.5.2/lib/cocoapods-core/source/manager.rb:118:insearch_by_name'`
  7. /Users/zhoujie/.rvm/gems/ruby-2.4.1@global/gems/cocoapods-search-1.0.0/lib/cocoapods-search/command/search.rb:87:inlocal_search'`
  8. /Users/zhoujie/.rvm/gems/ruby-2.4.1@global/gems/cocoapods-search-1.0.0/lib/cocoapods-search/command/search.rb:63:inrun'`
  9. /Users/zhoujie/.rvm/gems/ruby-2.4.1@global/gems/claide-1.0.2/lib/claide/command.rb:334:inrun'`
  10. /Users/zhoujie/.rvm/gems/ruby-2.4.1@global/gems/cocoapods-1.5.2/lib/cocoapods/command.rb:52:inrun'`
  11. /Users/zhoujie/.rvm/gems/ruby-2.4.1@global/gems/cocoapods-1.5.2/bin/pod:55:in'`
  12. /Users/zhoujie/.rvm/rubies/ruby-2.4.1/bin/pod:23:inload'`
  13. /Users/zhoujie/.rvm/rubies/ruby-2.4.1/bin/pod:23:in
    '`
  14. /Users/zhoujie/.rvm/gems/ruby-2.4.1@global/bin/ruby_executable_hooks:15:ineval'`
  15. /Users/zhoujie/.rvm/gems/ruby-2.4.1@global/bin/ruby_executable_hooks:15:in
    '`

――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

[!] Oh no, an error occurred.

Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=743%3A+unexpected+token+at+%27%27&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!

Looking for related issues on cocoapods/cocoapods...

  • Pod search error
    https://github.com/CocoaPods/CocoaPods/issues/6407 [closed] [4 comments]
    4 weeks ago

解决方法
rm ~/Library/Caches/CocoaPods/search_index.json

你可能感兴趣的:(2018-07-17)