user31231234124 user31231234124 - 1 year ago 98
Git Question

Unable to push my pod

Following is my pod spec file do |s| = "name"
s.version = "0.1"
s.summary = "summary"
s.description = "desc"
s.homepage = ""
s.license = 'MIT' = { "name" => "" }
s.source = { :git => "", :tag => s.version.to_s }
s.platform = :ios, '8.0'
s.requires_arc = true

# If more than one source file:
s.source_files = 'file.c'


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 Source

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
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download