I am trying to integrate a library into an existing iOS product which requires -ObjC linker flag but this causes duplicate symbol _main error in another library (libSDL2.a). Anyone here knows how to deal with this error ? I tried using unexpected_symbol main to suppress the symbol from exporting but that didn't help.
Is modifying the source code of libSDL to comment out main() definition the only way possible ? I would like to avoid it if possible. Thanks AJ.