【问题标题】:pod spec lint passes, but pod trunk push failspod spec lint 通过,但 pod trunk 推送失败
【发布时间】:2014-12-13 03:35:57
【问题描述】:

我正在尝试将库发送到 CocoaPods 存储库,但推送过程失败。
但是,正如我们在此处看到的,它并没有通过 lint 检查:

$ pod spec lint GUIPlayerView.podspec
 -> GUIPlayerView (0.0.1)

Analyzed 1 podspec.

GUIPlayerView.podspec passed validation.

$ pod trunk push GUIPlayerView.podspec
Validating podspec
 -> GUIPlayerView (0.0.1)

[!] The Pod Specification did not pass validation.

没有错误或警告消息。我的本地 git repo 已与远程的 master 同步并保持最新。我能做什么?

编辑:这是 podspec 文件:

Pod::Spec.new do |s|
  s.name          = "GUIPlayerView"
  s.version       = "0.0.1"
  s.summary       = "GUIPlayerView is a simple video player embedded into a UIView."
  s.homepage      = "https://github.com/guilhermearaujo/GUIPlayerView"
  s.license       = { :type => "MIT", :file => "LICENSE" }
  s.author        = { "Guilherme Araújo" => "me@mail.com" }
  s.platform      = :ios, "7.0"
  s.source        = { :git => "https://github.com/guilhermearaujo/GUIPlayerView.git", :tag => "0.0.1" }
  s.source_files  = "GUIPlayerView/Classes", "Classes/**/*.{h,m}"
  s.exclude_files = "GUIPlayerView/Classes/Exclude"
  s.resources     = "GUIPlayerView/Resources/*.png"
  s.framework     = "AVFoundation"
end

【问题讨论】:

  • 你安装了什么版本的 CocoaPods? pod --version
  • 这是以前报告的一个问题,但应该在版本 0.35.0 中修复,如果您不相信它已修复,请评论该问题。
  • 我有 0.35.0,我会在这个问题上发布消息。

标签: cocoapods


【解决方案1】:

我了解了--verbose 参数并阅读了日志,发现密钥s.requires_arc = true 丢失了。

由于某种原因,如果没有 --verbose 标志,则不会显示此警告。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-10-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-03-05
    • 2019-03-18
    • 2015-11-21
    • 1970-01-01
    相关资源
    最近更新 更多