pod install Unable to add source(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安装无法添加源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!