6

When I am adding my private repo name in homepage url in .podspec file I am getting following warning,

WARN  | url: The URL (https://github.com/username/repo_name) is not reachable.

I can't figure out how to fix it.

1 Answers1

9

Try:

pod lib lint --private

to skips checks that apply only to public pods.

NOTE: You will still be able to see the warnings but your validation will pass once all public warnings have been fixed.

PhillipJacobs
  • 2,337
  • 1
  • 16
  • 32
Yonat
  • 4,382
  • 2
  • 28
  • 37
  • 1
    I am still getting warning that URL is not reachable but also validation is passed? – prajakta patil Jan 07 '20 at 06:48
  • Makes sense - it's just a warning. – Yonat Jan 07 '20 at 07:59
  • 1
    yeah but while pushing I am getting path issue because URL is not reachable – prajakta patil Jan 07 '20 at 08:31
  • I am getting following error while pushing .podspec file Validating spec - ERROR | [iOS] unknown: Encountered an unknown error ([!] /usr/bin/git clone https://github.com/username/reponame.git /var/folders/b_/rksnr1hx58d18gf9w3mtby_m0000gn/T/d20200107-13659-1lh0ciy --template= --single-branch --depth 1 --branch 0.1.0 Cloning into '/var/folders/b_/rksnr1hx58d18gf9w3mtby_m0000gn/T/d20200107-13659-1lh0ciy'... warning: Could not find remote branch 0.1.0 to clone. fatal: Remote branch 0.1.0 not found in upstream origin ) during validation. [!] The `.podspec` specification does not validate. – prajakta patil Jan 07 '20 at 11:17
  • Did you do `git tag 0.1.0` and then `git push --tags` ? – Yonat Jan 07 '20 at 15:57
  • I tried `git tag 0.1.0` and then `git push --tags` but no difference. – Lehlohonolo_Isaac Jan 03 '23 at 19:42
  • Do you see the `0.1.0` tag on the remote? – Yonat Jan 05 '23 at 04:43