【问题标题】:No such module PDKClient with Cocoapods没有带有 Cocoapods 的这样的模块 PDKClient
【发布时间】:2017-03-29 16:09:23
【问题描述】:

我已经成功安装了带有 cocoapods 的 Pinterest SDK,但是当我尝试导入 PDKClient 时,它显示“没有这样的模块 PDKClient”。

我的播客文件:

target 'MyPin3' do
pod "PinterestSDK", :git => "https://github.com/pinterest/ios-pdk.git"
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!

# Pods for MyPin3

end

我确实打开了我的 xcworkspace,并且我尝试过 clean + build。我查找了其他一些 Stack Overflow 答案(尝试删除框架搜索路径等),但没有成功。

任何帮助将不胜感激。谢谢。

【问题讨论】:

    标签: swift cocoapods xcode8


    【解决方案1】:

    您应该导入PinterestSDK,而不是PDKClient。试试这条线,它应该可以工作:

    import PinterestSDK
    

    【讨论】:

    • 非常感谢。我对文档感到困惑。现在一切正常!
    • 很高兴为您提供帮助,我很高兴您能够让它工作:)
    猜你喜欢
    • 2015-12-04
    • 1970-01-01
    • 1970-01-01
    • 2023-02-16
    • 2021-03-20
    • 1970-01-01
    • 2015-09-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多