Pod安装无法添加源 [英] pod install Unable to add source

查看:35
本文介绍了Pod安装无法添加源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要执行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安装无法添加源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆