pod安装无法添加源

n00*_*dle 5 git ios restkit cocoapods

我想做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`.
Run Code Online (Sandbox Code Playgroud)

我想这可能是我的git配置.当我做一个git clone时,我会输入我的用户名和密码.是对的吗?

我的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
Run Code Online (Sandbox Code Playgroud)

Sre*_* VR 16

您忘记在命令行工具上设置新安装的Xcode路径.Xcode - >首选项 - >位置 - >命令行工具 - >设置您的Xcode.


n00*_*dle 4

我将源地址从 git@ 更改为 https:// 我想我还没有将 ssh 密钥配置为 git。