我想安装 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 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
最佳答案
您忘记在命令行工具上设置新安装的 Xcode 路径。 Xcode-->Preferences-->Locations-->命令行工具-->设置你的Xcode。
关于ios - pod install 无法添加源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31163882/