'Couldn't determine repo type for URL (gitlab + Mac)
I'm trying to execute "make gen" command in my project directory, but have an error:
"Сouldn't determine repo type for URL: https://gitlab.myproject/podspecs.git: (): mapping values are not allowed in this context at line ... column ..."
I've been looking here and googling, but without success. Only found similar errors for pods and YAML, but they are specific. I've checked my Podfile as well and it has source 'https://gitlab.myproject/podspecs.git', so that OK
Solution 1:[1]
pod repo add [name podSpecs] [URL Podspecs]
example:
pod repo add Specs http://igit.yycorp.com/specs.git
Solution 2:[2]
I was not able to solve that problem using other responses. So i have try different things. And finally i downgrade my cocoapods version. from 1.11.2 (last at this time) to 1.8.4 (which i had on another computer). And it worked fine.
I did not try with other versions.
sudo gem uninstall cocoapods-core cocoapods-deintegrate cocoapods-downloader cocoapods-plugins cocoapods-search cocoapods-trunk cocoapods-try
sudo gem install cocoapods -v 1.8.4
pod install
Solution 3:[3]
I solved this issue for my case by changing to SSH instead of HTTP for the source in my Podfile.
source [email protected]:domain/repo.git
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | J.Arji |
| Solution 2 | Romain TAILLANDIER |
| Solution 3 | klaeboe |
