user31231234124 user31231234124 - 9 days ago 6
Git Question

Unable to push my pod

Following is my pod spec file

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


when I tried running
pod trunk push name.podspec --verbose
, it is providing the following error

fatal: Remote branch 0.1 not found in upstream origin


I tried whats in this link to check the branch number but the releases tab is not found in my repository.

How can I be able to sort this out?

Answer

It is searching your git repo for a branch that has been tagged as 0.1.

You should be able to fix it with this:

git tag 0.1

git push --tags