2

我尝试使用 CocoaPods 安装 ShareKit 2.2。

在命令行中,我输入下一个:

touch Podfile
open -e Podfile

使用以下行编辑我的 Podfile:

platform :ios, '5.0'
pod 'ShareKit', '~> 2.2'

保存文件并输入pod install

行后Installing ShareKit (2.2)命令行工具要求我输入 github 帐户信息。我已输入我的帐户并在下面收到此消息:

[!] Pod::Executable clone  --mirror "https://github.com/dkuhnke/ShareKit.git" "/Users/developer/Library/Caches/CocoaPods/GitHub/a45caba117704c3f4cfa5f478a14e9305d2d5e9f"

Cloning into bare repository '/Users/developer/Library/Caches/CocoaPods/GitHub/a45caba117704c3f4cfa5f478a14e9305d2d5e9f'...
fatal: https://github.com/dkuhnke/ShareKit.git/info/refs?service=git-upload-pack not found: did you run git update-server-info on the server?

我做错了什么?

4

2 回答 2

4

ShareKit 的维护者决定删除用于规范的标签引用。目前,他们希望暂时从 CocoaPods 规范存储库中删除https://github.com/CocoaPods/Specs/pull/2280

我建议通过他们的说明安装https://github.com/ShareKit/ShareKit/wiki/Installing-sharekit

编辑:我刚刚删除了 2.1 和 2.2 规范https://github.com/CocoaPods/Specs/commit/c7ba46164cd76ef3a34a4036f2f3889ee0e0187c

2.0 规范仍然可用,但您仍然可以考虑官方安装说明。

更新:

如果您仍想使用 CocoaPods 安装 ShareKit,则已在 repo 中添加了 ShareKit 版本 2.3 规范https://github.com/CocoaPods/Specs/commit/e7b99c9913be9e8b31ea846a98a60f8f25acbd64

于 2013-05-23T14:05:43.137 回答
-1

您遇到此问题是因为您的项目路径包含单引号或空格。

这个问题已经报告给 cocoapods 了

于 2013-12-03T13:31:49.623 回答