简体   繁体   中英

Pod repo push for private repo encounters error: Repository not found

I'm setting up my first cocoapod on my private repo, however when trying to run pod repo push my-specs mypod.podspec , I get fatal: repository 'https://github.com/myusername/repo.git/' not found

This is for a private internal iOS codebase that I am modularising for re-use and installation via cocoapods

This is my .podspec:

Pod::Spec.new do |s|
  s.name             = 'podname'
  s.version          = '1.0.1'
  s.summary          = 'A short description'

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://github.com/username/repo'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'username' => 'email@address.com' }
  s.source           = { :git => 'https://github.com/username/repo.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '8.0'

  s.source_files = 'podname/Classes/**/*'

end

What I'm getting on trying to push the repo is

 -> podname (1.0.1)
    - WARN  | summary: The summary is not meaningful.
    - WARN  | url: The URL (https://github.com/username/repo) is not reachable.
    - ERROR | [iOS] unknown: Encountered an unknown error ([!] /usr/bin/git clone https://github.com/username/repo.git /var/folders/mp/3ny_fkts3p11rwpry385gqb80000gn/T/d20190510-71011-gu0kly --template= --single-branch --depth 1 --branch 1.0.1

Cloning into '/var/folders/mp/3ny_fkts3p11rwpry385gqb80000gn/T/d20190510-71011-gu0kly'...
remote: Repository not found.
fatal: repository 'https://github.com/username/repo.git/' not found
) during validation.

[!] The 'podname.podspec' specification does not validate.

s.source行上必须有一个真正的s.source

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM