Search code examples
iosobjective-cxcodelinker-errorslinker-flags

ObjC linker flag in XCode


I am working on iOS app in Swift in which I want to integrate Google SignIn. I have successfully integrated Google SDK in my project and I have also integrated BillDesk payment integration in my project (which is static library from billdesk libBilldesk.a ).

But when I run the project it gives me the error for billdesk library (libBilldesk.a) as duplicate symbol _OBJC_CLASS_$ and when I removed -ObjC linker flag then it builds successfully but that time it gives error for Google SignIn as [__NSDictionaryI gtm_httpArgumentsString]: unrecognized selector sent to instance 0x7f84eb6a2d80

I have search a lot about -ObjC, -force_load, -all_load but not getting any solution so please come up with your valuable solutions.

Thanks

Here are the screenshots for this...

for Billdesk

for Google


Solution

  • If you have added Third party library of TPKeyboardAvoiding in your project then remove it from project (or remove reference), then after ry to run your project.

    The error is mentioning duplicate symbol in

    UIScrollView+TPKeyboardAvoidingAdditions.h

    Try to check these files in your project, whether it has been added multiple times or not.