Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 '[email protected]: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
like image 556
n00dle Avatar asked Jul 01 '15 14:07

n00dle


People also ask

Should I check the pods directory into source control?

It is recommended that you keep the Pods directory under source control. After cloning the repo, the project can immediately build and run, even without having CocoaPods installed on the machine. There is no need to run pod install, and no Internet connection is necessary.


1 Answers

You forgot to set your newly install Xcode path on command-line tool. Xcode-->Preferences-->Locations-->Command line tool --> set your Xcode.

like image 168
Sreeraj VR Avatar answered Oct 13 '22 20:10

Sreeraj VR