无法推我的吊舱

时间:2016-11-27 08:20:22

标签: ios git cocoapods git-branch

以下是我的pod规范文件

Pod::Spec.new do |s|
s.name             = "name"
s.version          = "0.1"
s.summary          = "summary"
s.description      = "desc"
s.homepage         = "https://github.com/url"
s.license          = 'MIT'
s.author           = { "name" => "mail@mail.com" }
s.source           = { :git => "https://github.com/name/name.git", :tag => s.version.to_s }
s.platform     = :ios, '8.0'
s.requires_arc = true

# If more than one source file: https://guides.cocoapods.org/syntax/podspec.html#source_files
s.source_files = 'file.c' 

end

当我尝试运行pod trunk push name.podspec --verbose时,它提供了以下错误

  

致命:在上游原点找不到远程分支0.1

我在这个link中尝试了检查分支编号,但是在我的存储库中找不到版本标签。

我怎样才能解决这个问题?

1 个答案:

答案 0 :(得分:1)

正在搜索你的git repo,找到一个标记为0.1的分支。

你应该能够解决这个问题:

git tag 0.1

git push --tags
相关问题