skip to Main Content

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

4

Answers


  1. Chosen as BEST ANSWER

    Problem is solved by adding repository with this command in terminal:

    bundle exec pod repo add https://gitlab.myproject/podspecs.git
    

  2. pod repo add [name podSpecs] [URL Podspecs]

    example:

    pod repo add Specs http://igit.yycorp.com/specs.git
    
    Login or Signup to reply.
  3. 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
    
    Login or Signup to reply.
  4. 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

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search