user594883 user594883 - 2 months ago 20
Swift Question

Pinterest SDK: "PDKClient not found", what's wrong?

I'm trying to implement Pinterest SDK into my Swift project. I've followed this install guide: https://developers.pinterest.com/docs/sdks/ios/

I just can't get this line working:

PDKClient.configureSharedInstanceWithAppId("0000")


It keeps on resulting to
Use of unresolved identifier PDKClient


What should I do?

Answer

You need to import the PinterestSDK in the class (I guess AppDelegate, right?).

So, at the top of AppDelegate, add

import PinterestSDK

Then it should find the PDKClient object.