ios - Prefixing the files to avoid symbol conflicts between external frameworks -
I'm using the two external structure in my IOS code. While both the Framework internally PLCrashReoprter
using the framework, which is why I'm getting duplicate symbol errors.
Now a framework, i.e. the prefix of the file in the crash reporter framework, has the name / symbols attached. Code written to add the prefix names are given below:
#define PLCRASHREPORTER_PREFIX AcmeCo #ifdef PLCRASHREPORTER_PREFIX // We need two additional layers to make CPP option / / PLCRASHREPORTER_PREFIX Let's define. PLNS_impl2 (prefix, symbol) prefix ## signal # define PLNS_impl (prefix, symbol) PLNS_impl2 (prefix, symbol) #defined PLNS (symbol) PLNS_impl (PLCRASHREPORTER_PREFIX, symbol) #define PLCrashMachExceptionServer PLNS (PLCrashMachExceptionServer) #define PLCrashReport PLNS PLCrashReportApplicationInfo PLCrashReportBinaryImageInfo PLNS (PLCrashReportBinaryImageInfo) #define PLCrashReportExceptionInfo PLNS (PLCrashReportExceptionInfo)
now the error " comes Apple Mach-O linker error
"
i386 undefined symbols of architecture: "_OBJC_CLASS _ $ _ AcmeCoPLCrashReport", refers: objc-class-ref.o I've added the above all to the nameSpace.h
file.
Please guide me as trying all possible things but no use. thank you in advanced!
You must similarly compiled again the same framework (all. Files) macro definition to modify it Can export and use symbol names.
Comments
Post a Comment