giphy-ios-sdk: 'NSInvalidArgumentException' after presenting GiphyViewController()

I’m trying to present the GiphyViewController() but I get this error:

*** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[PINCache containsObjectForKey:]: unrecognized selector sent to instance 0x6000007a2940’

In my AppDelegate (didFinishLaunchingWithOptions) I’m running: Giphy.configure(apiKey: "my api key")

In my view controller I’m presenting the Giphy UI Controller this way:

let giphy = GiphyViewController()
giphy.mediaTypeConfig = [.gifs, .stickers]
present(giphy, animated: true)

As soon as the Giphy controller appears the application crashes with the error I quoted above. Why is this happening?

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17 (6 by maintainers)

Commits related to this issue

Most upvoted comments

hey all, apologies for this issue. thanks again for your patience. this should be fixed in 2.0.4 which you can get via

pod 'Giphy'

and pod update Giphy or

pod 'Giphy', :podspec => 'https://s3.amazonaws.com/sdk.mobile.giphy.com/SDK/2.0.4/Giphy.podspec'

No worries, you guys are always super helpful. My deployment target is 13.0 but I still get Giphy 2.0.2 on pod update if that helps any.