Andrey Chernukha Andrey Chernukha - 4 months ago 64
iOS Question

podspec specification does not validate

I'm trying to create a cocoa pod following this tutorial. I'm stuck at the moment where I'm doing the following command:


pod repo push RWPodSpecs RWPickFlavor.podspec


the problem is that I've got the following error:

Validating spec
[!] The `RWPickFlavor.podspec` specification does not validate.


And not further error description unfortunately. What I tried was reinstalling cocoapods and installing cocoapods keys, but it didn't help. I'm still getting the same error. Any ideas, guys?

Answer

Oh, the problem was very simple actually. I was simply being unobservant. In my .podspec file I had one of the urls formatted like that : ["https://github.com/Andrey-C/RWPickFlavor.git"]. Once I removed the square brackets around the url the error vanished.