PinterestSDK CocoaPods 不工作

PinterestSDK CocoaPods not working

最近有人成功使用过 PinterestSDK CocoaPods 吗? 这是我用作参考的 link: https://developers.pinterest.com/docs/sdks/ios/

我收到以下错误:

Pre-downloading: PinterestSDK from git@github.com:pinterest/ios-pdk.git

[!] Error installing PinterestSDK [!] /usr/bin/git clone git@github.com:pinterest/ios-pdk.git /var/folders/2m/87ls355x7_7b50b61d9h3lkr0000gn/T/d20150924-16277-16zcydf --single-branch --depth 1

Cloning into '/var/folders/2m/87ls355x7_7b50b61d9h3lkr0000gn/T/d20150924-16277-16zcydf'...

Permission denied (publickey).**

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.

CocoaPods 已安装,在创建的 Podfile 中添加了依赖项,其他 Cocoapods 没有 return 错误。

有人有解决方法吗?

正是 Podfile 中的这一行帮助我将 Pinterest-SDK 安装为 Cocoapods:

pod "PinterestSDK", :git => "https://github.com/pinterest/ios-pdk.git"

看起来 MIT 的 Pinterest SDK 分支已被删除或用户特定,您可以使用分支版本:

pod 'PinterestSDK_5'

This happens when installing pod asks for Github username.