ошибка запуска git clone https

#git #cocoapods

#мерзавец #кокосовые стручки #git #cocoapods

Вопрос:

Я получаю сообщение об ошибке, когда я использую git clone https://github.com/CocoaPods/Specs.git

Информация об ошибке является

 Cloning spec repo `master` from `https://github.com/CocoaPods/Specs.git` (branch `master`)
$ /usr/local/bin/git clone https://github.com/CocoaPods/Specs.git master
Cloning into 'master'...
fatal: remote error:
  %s is not a valid repository name
  Email support@github.com for help
[!] Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `master`.
(/usr/local/bin/git clone https://github.com/CocoaPods/Specs.git master

Cloning into 'master'...
fatal: remote error:
  %s is not a valid repository name
  Email support@github.com for help
)
  

Вы можете попробовать добавить его вручную в ~/.cocoapods/repos или через pod repo add .

Но когда я использую git clone git@github.com:CocoaPods/CocoaPods.git , это успешно. Как я могу это исправить?

Podfile Находится здесь

 source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'

target 'ApiTest' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!
  pod 'SnapKit', '~> 3.0.0'
  pod 'Alamofire', '~> 4.0'
  pod 'Kingfisher','~> 3.0.1'
  # Pods for ApiTest

  target 'ApiTestTests' do
    inherit! :search_paths
    # Pods for testing
  end

  target 'ApiTestUITests' do
    inherit! :search_paths
    # Pods for testing
  end

end
  

Комментарии:

1. Пожалуйста, опубликуйте ошибку в вопросе, а не по ссылке.

2. И предпочтительно в виде текста, а не изображения

3. Может быть просто временной ошибкой, pod setup для меня успешно проходит точку сбоя.

4. Я предполагаю, что с вашим Podfile что-то не так, не могли бы вы вставить ответ?