0

I am having a hard time creating a cocoa pods template and pushing it to GitHub because every time I access the terminal at the root to validate the pod using :

               pod lib lint

I get the error message :

         url: There was a problem validating the URL https://github.com/Nathaniel Whittington/me.

Any reason why I keep getting this error message? And is the last version of brew cocoapods 1.11.0?

Eric Aya
  • 69,473
  • 35
  • 181
  • 253
  • Does this answer your question? [Cocoapods: Failed to connect to GitHub to update the CocoaPods/Specs specs repo](https://stackoverflow.com/questions/38993527/cocoapods-failed-to-connect-to-github-to-update-the-cocoapods-specs-specs-repo) – Phil Dukhov Sep 04 '21 at 17:02
  • It seems that the URL has a space and it shouldn't. Maybe that's it? – pietrorea Sep 04 '21 at 17:49
  • @pietrorea thanks, ill look into that. been trying to get this cocoapods for hours now –  Sep 04 '21 at 18:12
  • @pietrorea how would I go about fixing that? In my regular projects, I don't have that issue. –  Sep 04 '21 at 18:24
  • Added an answer below – pietrorea Sep 04 '21 at 19:26

1 Answers1

1

If the problem is indeed the space in your URL, open your pod spec file and remove the space from spec.source. Here's some documentation:

https://guides.cocoapods.org/syntax/podspec.html

pietrorea
  • 841
  • 6
  • 14
  • I did have to change the spec.source, but for some reason, it's a completely different name from the one used in my Github account. –  Sep 04 '21 at 19:35
  • Thanks a bunch. @pietrorea –  Sep 04 '21 at 19:44