美文网首页
cocoapods问题记录

cocoapods问题记录

作者: 顺手给我new一个对象 | 来源:发表于2018-08-15 15:14 被阅读206次

    pod setup 报错如下

    pod setup
    Setting up CocoaPods master repo
      $ /usr/local/bin/git -C /Users/HO/.cocoapods/repos/master fetch origin --progress
      remote: Counting objects: 1224299, done.        
      remote: Compressing objects: 100% (337/337), done.        
      error: RPC failed; curl 18 transfer closed with outstanding read data remaining
      fatal: The remote end hung up unexpectedly
      fatal: early EOF
      fatal: index-pack failed
    [!] CocoaPods was not able to update the `master` repo. If this is an unexpected issue and persists you can inspect it running `pod repo update --verbose`
    

    执行 pod repo update --verbose 解决

    pod repo update --verbose
    
    Updating spec repo `master`
      $ /usr/local/bin/git -C /Users/HO/.cocoapods/repos/master fetch origin --progress
      remote: Counting objects: 1224470, done.        
      remote: Compressing objects: 100% (73/73), done.        
      error: RPC failed; curl 18 transfer closed with outstanding read data remaining
      fatal: The remote end hung up unexpectedly
      fatal: early EOF
      fatal: index-pack failed
    [!] CocoaPods was not able to update the `master` repo. If this is an unexpected issue and persists you can inspect it running `pod repo update --verbose`
    
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/sources_manager.rb:114:in `rescue in update_git_repo'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/sources_manager.rb:106:in `update_git_repo'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/sources_manager.rb:128:in `update_git_repo'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-core-1.5.3/lib/cocoapods-core/source.rb:344:in `update'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/sources_manager.rb:88:in `block (2 levels) in update'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/user_interface.rb:64:in `section'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/sources_manager.rb:87:in `block in update'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/sources_manager.rb:86:in `each'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/sources_manager.rb:86:in `update'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/command/repo/update.rb:23:in `run'
    /Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:52:in `run'
    /Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/bin/pod:55:in `<top (required)>'
    /usr/local/bin/pod:23:in `load'
    /usr/local/bin/pod:23:in `<main>'
    

    此时 pod install 正常

    相关文章

      网友评论

          本文标题:cocoapods问题记录

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