我正在按照cocoapods.org网站上提供的所有说明来创建pod库。 每件事情都会发生,比如验证和一切。 当我发出命令
pod trunk push myLibName
我收到以下错误。如果有人能帮助我找出问题所在,我们将非常感激。
### Error
```
NoMethodError - undefined method `last' for #<Netrc::Entry:0x007fac860cb248>
/Library/Ruby/Gems/2.0.0/gems/cocoapods-trunk-0.1.4/lib/pod/command/trunk.rb:390:in `token'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-trunk-0.1.4/lib/pod/command/trunk.rb:259:in `validate!'
/Library/Ruby/Gems/2.0.0/gems/claide-0.6.1/lib/claide/command.rb:280:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.33.1/lib/cocoapods/command.rb:48:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.33.1/bin/pod:33:in `<top (required)>'
/usr/bin/pod:23:in `load'
/usr/bin/pod:23:in `<main>'
答案 0 :(得分:0)
根据这篇文章,您需要更新您的Cocoapods版本。
https://github.com/CocoaPods/CocoaPods/issues/2674
$ gem install cocoapods
拉里