Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
git克隆https运行错误_Git_Cocoapods - Fatal编程技术网

git克隆https运行错误

git克隆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'...

我在使用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

请在问题中发布错误,而不是通过链接。最好是作为文本,而不是图像,这可能只是一个暂时的错误,
pod setup
为我成功地运行过故障点。我猜你的pod文件有问题,你能粘贴答案吗?请在问题中发布错误,不是通过链接。最好是作为文本,而不是图像,这可能只是一个暂时的错误,
pod setup
为我成功地运行过故障点。我想你的pod文件有问题,你能粘贴答案吗?