0

I am integrating PayU in my swift 2 based project by using sample code source from link: https://github.com/payu-intrepos/iOS-SDK/releases/tag/v3.3

The app crashes with the following log in the console, when the payu webview code from the class PayUUIPaymentUIWebViewController is executed:

webViewDidStartLoad URL-----> 2016-01-07 19:07:59.788 MyTestApp[14764:2080307] -[__NSCFData gunzippedData]: unrecognized selector sent to instance 0x7f80395de440 2016-01-07 19:07:59.809 MyTestApp[14764:2080307] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFData gunzippedData]: unrecognized selector sent to instance 0x7f80395de440'

It is an unhandled exception. Does anyone know what this means? What could be the cause of it?

Amit Srivastava
  • 1,105
  • 9
  • 18
Ian Pinto
  • 2,199
  • 1
  • 21
  • 24
  • 1
    They cover this in their issue tracker: https://github.com/payu-intrepos/Documentations/issues/3 – Rob Napier Jan 07 '16 at 13:55
  • 1
    Thanks Rob Napier for pointing out the link to the solution. As per the link, I had forgottent to added -Objc in Other Linker Flags in Project Build Settings, as my initial implementation was using swift and the payU code was in Objective-C. This solution works for me. – Ian Pinto Jan 07 '16 at 14:11

1 Answers1

1

In your Xcode project add "-Objc" in Other Linker Flags in Project Build Settings.