ios - Different Other Linker Flags for two sdk's -


in project have foreign sdks. first sdk work flag -objc , -all_load , second doesn't need these flags. if set 2 flags second sdk duplicate symbols messages. if remove flags first sdk give error unrecognized selector sent instance.

how can fix problem ? there way flags -objc , -all_load exclude second sdk ?

edit: first sdk dropbox ios sdk , installed on pod , need flags -objc , -all_load.

the second sdk have .h , .m files , linked library libmtprotocol.a.

if flags enabled in other linker flags, following duplicate messages :

duplicate symbol _objc_class_$_mtexchangedatathermoframefactory in: duplicate symbol _objc_metaclass_$_mtexchangedatathermoframefactory in: duplicate symbol _objc_ivar_$_mtexchangedatathermoinputmessage._warninghumidity in: duplicate symbol _objc_ivar_$_mtexchangedatathermoinputmessage._warningdewpoint in: duplicate symbol _objc_ivar_$_mtexchangedatathermoinputmessage._packetnumber in: duplicate symbol _objc_ivar_$_mtexchangedatathermoinputmessage._warningambtemp in: duplicate symbol _objc_ivar_$_mtexchangedatathermoinputmessage._timestamp in: duplicate symbol _objc_ivar_$_mtexchangedatathermoinputmessage._laseron in: duplicate symbol _objc_ivar_$_mtexchangedatathermoinputmessage._alarm in: duplicate symbol _objc_class_$_mtexchangedatathermoinputmessage in: duplicate symbol _objc_metaclass_$_mtexchangedatathermoinputmessage in: duplicate symbol _objc_ivar_$_mtexchangedatathermoinputmessage._mode in: duplicate symbol _objc_ivar_$_mtexchangedatathermoinputmessage._temperaturemode in: duplicate symbol _objc_ivar_$_mtexchangedatathermoinputmessage._autosync in: duplicate symbol _objc_ivar_$_mtexchangedatathermoinputmessage._measid in: duplicate symbol _objc_ivar_$_mtexchangedatathermoinputmessage._uniqueid in: duplicate symbol _objc_ivar_$_mtexchangedatathermoinputmessage._component3 in: duplicate symbol _objc_ivar_$_mtexchangedatathermoinputmessage._component2 in: duplicate symbol _objc_ivar_$_mtexchangedatathermoinputmessage._component1 in: duplicate symbol _objc_class_$_mtexchangedatathermomessagefactory in: duplicate symbol _objc_metaclass_$_mtexchangedatathermomessagefactory in: duplicate symbol _objc_ivar_$_mtexchangedatathermooutputmessage._packetnumber in: duplicate symbol _objc_ivar_$_mtexchangedatathermooutputmessage._synccontrol in: duplicate symbol _objc_class_$_mtexchangedatathermooutputmessage in: duplicate symbol _objc_metaclass_$_mtexchangedatathermooutputmessage in: duplicate symbol _objc_ivar_$_mtexchangedatathermooutputmessage._mode in: ld: 26 duplicate symbols architecture arm64 clang: error: linker command failed exit code 1 (use -v see invocation)  

all duplicate symbols references on libmtprotocol.a library.


Comments

Popular posts from this blog

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

arrays - Algorithm to find ideal starting spot in a circle -