Podspec Lint和Trunk Push Error

时间:2016-01-14 22:31:25

标签: ios cocoapods podspec

我正在运行以下命令:

pod spec lint --verbose

我正在获取输出

** BUILD SUCCEEDED **
-> MyFramework (0.1.0)
-> MyFramework
――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

命令

/usr/local/bin/pod spec lint --verbose

报告

* What did you do?

* What did you expect to happen?

* What happened instead?

堆栈

CocoaPods : 0.39.0
    Ruby : ruby 2.0.0p645 (2015-04-13 revision 50299) [universal.x86_64-darwin15]
RubyGems : 2.0.14
    Host : Mac OS X 10.11.2 (15C50)
   Xcode : 7.2 (7C68)
     Git : git version 2.5.4 (Apple Git-61)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ cee10ce570256b26ee525b1d6868e2f486b3df92

插件

cocoapods-plugins : 0.4.2
cocoapods-search  : 0.1.0
cocoapods-stats   : 0.6.2
cocoapods-trunk   : 0.6.4
cocoapods-try     : 0.5.1

错误

NoMethodError - undefined method `to_sym' for #<Hash:0x007ff9ab949088>
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.39.0/lib/cocoapods-core/specification/root_attribute_accessors.rb:198:in `block in convert_keys_to_symbol'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.39.0/lib/cocoapods-core/specification/root_attribute_accessors.rb:196:in `each'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.39.0/lib/cocoapods-core/specification/root_attribute_accessors.rb:196:in `convert_keys_to_symbol'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.39.0/lib/cocoapods-core/specification/root_attribute_accessors.rb:113:in `source'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.39.0/lib/cocoapods-core/specification/linter.rb:109:in `block in check_required_attributes'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.39.0/lib/cocoapods-core/specification/linter.rb:108:in `each'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.39.0/lib/cocoapods-core/specification/linter.rb:108:in `check_required_attributes'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-core-0.39.0/lib/cocoapods-core/specification/linter.rb:50:in `lint'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.39.0/lib/cocoapods/validator.rb:243:in `perform_linting'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.39.0/lib/cocoapods/validator.rb:77:in `validate'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.39.0/lib/cocoapods/command/spec/lint.rb:60:in `block in run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.39.0/lib/cocoapods/command/spec/lint.rb:50:in `each'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.39.0/lib/cocoapods/command/spec/lint.rb:50:in `run'
/Library/Ruby/Gems/2.0.0/gems/claide-0.9.1/lib/claide/command.rb:312:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.39.0/lib/cocoapods/command.rb:47:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.39.0/bin/pod:44:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'
――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

[!] Oh no, an error occurred.

我不知道为什么会出现这种错误。我找不到任何名为to_sym的方法。我更新了我的podspecs,并摆脱了所有错误。我已经注册了pod trunk。现在我所要做的就是得到一个有效的棉绒并推到后备箱。我试图通过http做到这一点。不确定这是否会影响任何事情,但我知道大多数人都是通过git源来做到的。我创建了库,甚至在这里有一个示例项目。

0 个答案:

没有答案