Cocoapods 规范未通过验证

Cocoapods 规范未通过验证,cocoapods,podspec,Cocoapods,Podspec,我使用pod spec create在我的项目(Swift)文件夹中创建.podspec文件。在项目文件夹中,源文件位于源文件夹中,演示项目位于示例文件夹中。还创建了许可证 但是规范没有通过验证,我收到了规范没有通过验证,因为有2个错误 这是我的PodSpec文件: Pod::Spec.new do |s| s.name = "StickerTextView" s.version = "0.1.0" s.summary = "add text(m

我使用
pod spec create
在我的项目(Swift)文件夹中创建.podspec文件。在项目文件夹中,源文件位于源文件夹中,演示项目位于示例文件夹中。还创建了许可证

但是规范没有通过验证,我收到了
规范没有通过验证,因为有2个错误

这是我的PodSpec文件:

Pod::Spec.new do |s|

  s.name         = "StickerTextView"
  s.version      = "0.1.0"
  s.summary      = "add text(multiple line support) to imageView, edit, rotate or resize them as you want, then render the text on image"

  s.homepage     = "https://github.com/luiyezheng/StickerTextView"

  s.license      = { :type => 'MIT', :file => 'LICENSE' }

  s.author       = { "luiyezheng" => "luiyezheng@126.com" }

  s.source       = { :git => "https://github.com/luiyezheng/StickerTextView.git", :tag => "0.1.0" }

  s.platform = :ios, "8.0"

  s.source_files  = "Source"

  s.requires_arc = false

  s.frameworks = "UIKit"

end
以下是错误的详细信息:

[!] Error installing StickerTextView
 -> StickerTextView (0.1.0)
    - ERROR | name: The name of the spec should match the name of the file.
    - ERROR | [iOS] unknown: Encountered an unknown error ([!] /usr/local/bin/git clone https://github.com/luiyezheng/StickerTextView.git /tmp/d20160422-22078-3jc64h --single-branch --depth 1 --branch 0.1.0

Cloning into '/tmp/d20160422-22078-3jc64h'...
warning: Could not find remote branch 0.1.0 to clone.
fatal: Remote branch 0.1.0 not found in upstream origin
) during validation.

Analyzed 1 podspec.

[!] The spec did not pass validation, due to 2 errors.

/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.39.0/lib/cocoapods/command/spec/lint.rb:77: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>'
[!]安装贴纸文本视图时出错
->贴纸文本视图(0.1.0)
-错误|名称:规范的名称应与文件的名称匹配。
-错误|[iOS]未知:遇到未知错误([!]/usr/local/bin/git clone)https://github.com/luiyezheng/StickerTextView.git /tmp/d20160422-22078-3jc64h--单支管--深度1--支管0.1.0
克隆到“/tmp/d20160422-22078-3jc64h”。。。
警告:找不到要克隆的远程分支0.1.0。
致命:在上游原点中未找到远程分支0.1.0
)在验证期间。
分析了1个podspec。
[!]由于2个错误,规范未通过验证。
/Library/Ruby/Gems/2.0.0/Gems/cocoapods-0.39.0/lib/cocoapods/command/spec/lint.rb:77: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`'
/usr/local/bin/pod:23:in“装载”
/usr/local/bin/pod:23:in`'

你能把这两个错误粘贴到这里吗?@LucaD这两个错误的详细信息没有显示在终端上,我怎么才能得到它们?@LucaD我刚刚编辑了我的问题,那么,你现在知道问题出在哪里了吗?你的github repo上有标签
0.1.0