I know this question has been asked before, but I've tried everything I could find and none of it has worked.
I have a fully functional iOS app, that I now want to integrate AdMob Network Mediation with. I've already successfully had just AdMob working fine, but the Mediator requires the linkers '-all_load' and '-ObjC' to be set (in Other Linker Flags). Sure enough if I build without them, no ads are shown and in the logs it says it requires them to be set.
The problem is I cannot successfully build my app with either all_load or ObjC set. I read that ObjC isn't necessary for iOS apps, but even without it I still have the problem with all_load. The problem being I get this error:
ld: duplicate symbol [some command here] [some static library] and [path to same command] for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)
If I remove the offending static library and rebuild, the error simply moves on to the next static library I have and so on. Being that I'm trying to install an ad mediator, my app requires several static libraries from different ad networks to be in place.
Here are some solutions that I've tried that have failed:
- compiling for armv6, not armv7 (not an ideal fix anyway, as I want both)
- replacing all_load with force_load [path to library], and testing on an actual iOS device as apparently this method own't work with a simulator regardless (this doesn't seem to do anything, I get the exact same problem, using the same path found in the error anyway)
- removing all_load (builds but like I said, AdMob Mediation requires it)
- removing offending libraries (obviously doesn't work because the error complains about every single one of my static libraries which I need)
Any help is appreciated in solving this issue.
EDIT: THE SOLUTION TO MY PROBLEM
As it turns out, the only thing I did