无法推送我的广告连播

Unable to push my pod

以下是我的 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 时,出现以下错误

fatal: Remote branch 0.1 not found in upstream origin

我尝试了此 中的内容来检查分支编号,但在我的存储库中找不到发布选项卡。

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

它正在搜索您的 git 存储库以查找已标记为 0.1 的分支。

你应该可以用这个修复它:

git tag 0.1

git push --tags