ios - pod install 无法添加源

标签 ios git 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`.

我认为这可能是我的 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/

相关文章:

ios - 使用RestKit,使用 block 加载对象,何时以及如何取消请求?

ios - 子父上下文保存冲突

ios - 如何将 UnsafePointer 映射到另一种类型?

git - 无法使用 netbeans 将主分支推送到 git 存储库

git cherry-pick merge 冲突 pull 入其他提交?

git - 择优选择后的 Azure DevOps Pull 请求

ios - 未正确调整下载的图像大小

ios - 如何通过 SwiftUI 中的按钮点击显示菜单?

ios - restkit json 示例

objective-c - RestKit 对象建模动态数据