ios - PinterestSDK CocoaPods 不工作

标签 ios swift cocoapods pinterest

有没有人最近成功使用了 PinterestSDK CocoaPods? 这是我用作引用的链接: 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 不返回错误。

有人有解决方法吗?

最佳答案

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

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

关于ios - PinterestSDK CocoaPods 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32767104/

相关文章:

ios - 在 UIView 上绘制点和线

ios - 这个函数返回的元组有什么问题?

ios - 状态栏背景颜色与 View Controller 不同

ios - 在部分代码中抑制 "is partial: introduced in iOS"

ios - 当在 iOS Swift 3 中以编程方式添加 Web View 以查看时,如何在 UIWebView 中获取响应状态代码?

ios - UITableViewCell setSelected :animated called twice on iPad

objective-c - 在 objective-c 或 swift 中覆盖 pod 文件方法的最佳实践是什么?

ios - 在哪里添加topLayoutGuide约束代码

ios - 由于 Xcode 错误导致的 pod 规范 lint 验证错误

ios - 在 Swift 中仅导入 ObjC header : No Such Module error