首页 > 解决方案 > IndoorAtlasWayfinding Pod 安装错误

问题描述

运行/安装我的 pod 文件时

use_frameworks!
target 'IndoorNav' do
 source 'git@github.com:IndoorAtlas/CocoaPods-Specs.git'
 pod 'IndoorAtlas', '2.8.1'
 pod 'IndoorAtlasWayfinding', '2.8.0'
end

我收到以下错误

Analyzing dependencies
Cloning spec repo `indooratlas` from `git@github.com:IndoorAtlas/CocoaPods-Specs.git`
[!] Unable to add a source with url `git@github.com:IndoorAtlas/CocoaPods-Specs.git` named `indooratlas`.
You can try adding it manually in `~/.cocoapods/repos` or via `pod repo add`.

我也尝试了许多在https://github.com/CocoaPods/CocoaPods/issues/4293上讨论的解决方案,但找不到答案。有人可以在这里帮忙吗?

标签: iosswiftcocoapods

解决方案


我认为 podfile 应该是:

use_frameworks!
target 'IndoorNav' do
 source 'https://github.com/IndoorAtlas/CocoaPods-Specs.git'
 pod 'IndoorAtlas', '2.8.1'
 pod 'IndoorAtlasWayfinding', '2.8.0'
end

推荐阅读