Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HDFC iOS SDK crashing to integrate in Swift?

HDFC SDK ( written in Objective - C) Integration in SWIFT

I am integrating HDFC iOS SDK in Swift . Since HDFC SDK only available in Objective C to i created BRIDGING HEADER to integrate in Swift .

HDFC SDK is created using XIB and my project in storyboard so i embed my storyboard in NavigationController and configurred all mandatory parameter to open PaymentView but it is crashing while opening the Payment Screen.

Here is Crash :

Unknown class CreditCardCell in Interface Builder file. *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key makePaymentButton.'

*NOTE - I found there is a custom cell is designed in SDK (.xib and .h ) files are there i tried to reconnect (then remove it ) but nothing works .

Any Help is kindly appreciated.

Thanks

like image 975
Shobhakar Tiwari Avatar asked Dec 04 '25 07:12

Shobhakar Tiwari


1 Answers

           **HDFC SDK WORKING FINE IN SWIFT**

After Spending entire night , i figure out the exact issue :

To Make objective C SDK work in SWIFT :

MOST IMPORTANT PART IS :

Build Setting - Linking - Other Linker Flag - (-ObjC)

Finally Solved .

like image 119
Shobhakar Tiwari Avatar answered Dec 07 '25 04:12

Shobhakar Tiwari



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!