Pod安装无法添加源

本教程将介绍Pod安装无法添加源的处理方法,这篇教程是从别的地方看到的,然后加了一些国外程序员的疑问与解答,希望能对你有所帮助,好了,下面开始学习吧。

Pod安装无法添加源 教程 第1张

问题描述

我要执行Pod安装,但收到这些错误。

错误:

Analyzing dependencies
Cloning spec repo `wackadoo` from `gitATgithub.com:Repo/Repo.git`
[!] Unable to add a source with url `gitATgithub.com:Repo/Repo.git` named `Repo`.
You can try adding it manually in `~/.cocoapods/repos` or via `pod repo add`.

我想可能是我的git配置。
当我进行git克隆时,我必须输入我的用户名和密码。
对吗?

我的Podfile

source 'git@github.com:sample/sample.git'
source 'https://github.com/CocoaPods/Specs.git'

pod 'RestKit', '~>  0.20.0'
pod 'TestLibrary', :git => 'https://github.com/sample/sample2'
pod 'libARClientIOS', :path => '~/Developer/Test/iPhone/libARClientIOS/'

post_install do |installer|
  installer.project.targets.each do |target|
 target.build_configurations.each do |configuration|
target.build_settings(configuration.name)['ARCHS'] = '$(ARCHS_STANDARD_32_BIT)'
 end
  end
end

推荐答案

我将源地址从git@更改为https://
我认为我尚未将我的ssh密钥配置为git。

好了关于Pod安装无法添加源的教程就到这里就结束了,希望趣模板源码网找到的这篇技术文章能帮助到大家,更多技术教程可以在站内搜索。