cocoaPods莫名其妙问题记录

莫名其妙的不能使用

### Report

* What did you do?

* What did you expect to happen?

* What happened instead?


### Stack

```
   CocoaPods : 0.29.0
        Ruby : ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin12.0]
    RubyGems : 2.2.2
        Host : Mac OS X 10.8.5 (12F45)
       Xcode : 5.0.2 (5A3005)
Ruby lib dir : /Users/Meway/.rvm/rubies/ruby-2.1.1/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ e13d91ce0ff341c73c0ec2366525fbbf86bc2b26
```

### Error

```
Psych::SyntaxError - (/Users/Meway/.cocoapods/repos/master/CocoaPods-version.yml): mapping values are not allowed in this context at line 3 column 4
/Users/Meway/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/psych.rb:370:in `parse'
/Users/Meway/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/psych.rb:370:in `parse_stream'
/Users/Meway/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/psych.rb:318:in `parse'
/Users/Meway/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/psych.rb:245:in `load'
/Users/Meway/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/psych.rb:464:in `block in load_file'
/Users/Meway/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/psych.rb:464:in `open'
/Users/Meway/.rvm/rubies/ruby-2.1.1/lib/ruby/2.1.0/psych.rb:464:in `load_file'
/Users/Meway/.rvm/gems/ruby-2.1.1@global/gems/cocoapods-0.29.0/lib/cocoapods/sources_manager.rb:261:in `version_information'
/Users/Meway/.rvm/gems/ruby-2.1.1@global/gems/cocoapods-0.29.0/lib/cocoapods/sources_manager.rb:222:in `repo_compatible?'
/Users/Meway/.rvm/gems/ruby-2.1.1@global/gems/cocoapods-0.29.0/lib/cocoapods/sources_manager.rb:281:in `master_repo_functional?'
/Users/Meway/.rvm/gems/ruby-2.1.1@global/gems/cocoapods-0.29.0/lib/cocoapods/command.rb:39:in `parse'
/Users/Meway/.rvm/gems/ruby-2.1.1@global/gems/claide-0.4.0/lib/claide/command.rb:179:in `parse'
/Users/Meway/.rvm/gems/ruby-2.1.1@global/gems/cocoapods-0.29.0/lib/cocoapods/command.rb:38:in `parse'
/Users/Meway/.rvm/gems/ruby-2.1.1@global/gems/claide-0.4.0/lib/claide/command.rb:211:in `run'
/Users/Meway/.rvm/gems/ruby-2.1.1@global/gems/cocoapods-0.29.0/lib/cocoapods/command.rb:51:in `run'
/Users/Meway/.rvm/gems/ruby-2.1.1@global/gems/cocoapods-0.29.0/bin/pod:24:in `<top (required)>'
/Users/Meway/.rvm/rubies/ruby-2.1.1/bin/pod:23:in `load'
/Users/Meway/.rvm/rubies/ruby-2.1.1/bin/pod:23:in `<main>'
/Users/Meway/.rvm/gems/ruby-2.1.1@global/bin/ruby_executable_hooks:15:in `eval'
/Users/Meway/.rvm/gems/ruby-2.1.1@global/bin/ruby_executable_hooks:15:in `<main>'
```

莫名其妙的解决:

cd ~/.cocoapods/repos/master
git reset --hard


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值