Hi,
I'm developing an app for:
iOS
on Xcode 4.3.2, OSX 10.7.3
Testing with iPhone simulators 4.3+ and an iPad device.
I have Admob functioning perfectly, but I'd like to implement several other supported networks using Admob Mediation, which requires the linker flags '-ObjC -all_load' to be set. This causes duplicate symbol errors with every supported network library that I try, as well as duplicate symbol errors with all my other static libraries unrelated to admob mediation.
I've tried everything I could find on this seemingly common issue. The best solution seems to be to replace '-all_load' with '-force_load "path/to/offending/lib.a"' and add a force_load for each conflicting library. I've tried this and it doesn't seem to change anything. I still get the duplicate symbols errors.
For example, I can get Admob compiling with mediation so long as no other networks and libraries are integrated. If I then try to add, for example Mellenial, I get the following error, even with '
-force_load "MMSDK/libMMSDK_4.5.5.a"' added to the linkers:
ld: duplicate symbol
_OBJC_METACLASS_$_SBJsonParser in
[path]/Objects-normal/armv7/SBJsonParser.o and
MMSDK/libMMSDK_4.5.5.a(SBJsonParser.o) for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see
invocation)For more info see my Stack Overflow question:
http://stackoverflow.com/questions/10343075/ios-admob-network-mediation-duplicate-symbols-error-with-all-load-and-objcAny ideas on how to get Admob Mediation working with other networks?
Thanks