首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Podspec不会无错误地验证

Podspec不会无错误地验证
EN

Stack Overflow用户
提问于 2016-08-03 09:48:20
回答 1查看 1.5K关注 0票数 0

我在试着制造私人吊舱。

我所做的:*在正确的分支上创建并推动回购*创建podspec

现在,我正在努力进行podspec验证。

BKit.podspec

代码语言:javascript
复制
Pod::Spec.new do |s|
  s.name             = 'BKit'
  s.version          = '0.1.0'
  s.summary          = 'This is for myown usage kit'
  s.homepage         = 'https://wdowikowski.pl'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'Błażej Wdowikowski' => 'blazej@wdowikowski.pl' }
  s.source           = { :git => 'https://url.to.repo', :tag => s.version.to_s }
  s.social_media_url = 'https://twitter.com/the_dudi'
  s.ios.deployment_target = '8.0'
  s.source_files = 'BKit/Classes/**/*'
  s.frameworks = 'UIKit'
  s.dependency 'Cheetah'
  s.dependency 'Decodable'
end

打电话给pod repo push BKit BKit.podspec --verbose之后

代码语言:javascript
复制
//Building log
** BUILD SUCCEEDED **

 -> BKit (0.1.0)
    + WARN  | xcodebuild:  Cheetah/Cheetah/Bezier.swift:44:36: warning: '++' is deprecated: it will be removed in Swift 3
    + WARN  | xcodebuild:  Cheetah/Cheetah/Bezier.swift:44:9: warning: C-style for statement is deprecated and will be removed in a future version of Swift
    + WARN  | xcodebuild:  Cheetah/Cheetah/Cheetah.swift:290:16: warning: '++' is deprecated: it will be removed in Swift 3
    + WARN  | xcodebuild:  Cheetah/Cheetah/Cheetah.swift:295:28: warning: '--' is deprecated: it will be removed in Swift 3
    + WARN  | xcodebuild:  Cheetah/Cheetah/CheetahManager.swift:35:16: warning: '++' is deprecated: it will be removed in Swift 3
    + WARN  | xcodebuild:  Cheetah/Cheetah/CheetahManager.swift:46:65: warning: use of string literal for Objective-C selectors is deprecated; use '#selector' instead

[!] The `BKit.podspec` specification does not validate.

/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/command/repo/push.rb:130:in `block in validate_podspec_files'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/command/repo/push.rb:119:in `each'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/command/repo/push.rb:119:in `validate_podspec_files'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/command/repo/push.rb:64:in `run'
/Library/Ruby/Gems/2.0.0/gems/claide-1.0.0/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/command.rb:50:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'

我不知道自己做错了什么,也不知道该看什么。

我正在使用Cocoapods 1.0.1

EN

回答 1

Stack Overflow用户

发布于 2016-08-04 15:20:27

看起来,您在回购URL的占位符中。

如果您是pod spec lint --verbose,您可以看到一个更详细的错误消息,说明您的规范失败的原因,比如fatal: unable to access 'https://url.to.repo/': Could not resolve host: url.to.repo。希望这能有所帮助。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38740093

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档