没有这样的模块 PDKClient with Cocoapods

No such module PDKClient with Cocoapods

我已经成功安装了带有 cocoapods 的 Pinterest SDK,但是当我尝试导入 PDKClient 时,它显示 "No such module 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 答案(尝试删除框架搜索路径等),但没有成功。

如有任何帮助,我们将不胜感激。谢谢。

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

import PinterestSDK