Axel0nf1r3 Axel0nf1r3 - 15 days ago 5
Git Question

pod install Unable to add source

I want to do pod install, but i got these error.

Error:

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`.


I think it could be my git config.
When i do a git clone, i musst enter my username and Password.
Is that right?

My 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

Answer

I change the source address from git@ to https:// I think i haven't configured my ssh key to git.