Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9063311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T15:57:56+00:00 2026-06-16T15:57:56+00:00

I know this question has been asked before, but I’ve tried everything I could

  • 0

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 didn’t try was only using -ObjC on an actual device, this seems to work for me!

EDIT2: NEVERMIND, STILL HAVING TROUBLE

I’ll quote my comment below when asked what static libraries were causing me problems:

“Well I got AdMob Mediation working without any other networks by excluding the all_load and just including ObjC, which was working fine until I added my first network, Adfonic, which is currently conflicting with MobileAppTracking, I get:
ld: duplicate symbol _OBJC_IVAR_$_Reachability.reachabilityRef in [path]/Adfonic SDK/libAdfonic.a(Reachability.o) and [path]/Objects-normal/armv6/Reachability.o for architecture armv6 clang: error: linker command failed with exit code 1 (use -v to see invocation)”

I had the bare bones of Admob Mediator working by deleting all other ad network libraries, but with my first third-party network integration I’m getting another conflict between that and a tracking library I have implemented, MobileAppTracking. Still looking for a solution to solve ‘duplicate symbols’.

EDIT 3

I can confirm that every single ad network I try with the AdMob Mediator (except for AdMob itself) fails to compile, most of them due to duplicate symbol errors. I don’t understand how this can be, as I’m sure I’m not the only one using Admob’s Mediation service.

EDIT 4

I’ll quote my comment below:

“I actually managed to get most of the ad networks and libraries working for me, I had to delete quite a few references under Compile Sources, but I got it compiling none-the-less, wile still using -ObjC and -all_load!”

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T15:57:57+00:00Added an answer on June 16, 2026 at 3:57 pm

    I had the same problem. After adding -ObjC in other linkers, I could not compile (It was complaining about duplicate symbols and reachability.). Removing it would let me compile, but AdMob was crashing the app.

    After a lot of testing and playing with a lot of parameters I did the following and it is now working:
    I went to Targets -> AppName -> Build Phases -> Compile Sources and removed Reachability.m.
    It compiled just fine and AdMod was also working without crashing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Yes, I know this question has been asked before, but I can't find an
I know this question has been asked before, but I tried eveything and can't
I know this question has been asked before, but none of the answers in
I know this question has been asked before, but I wasn't able to find
I know this question has been asked here before, but none of the suggestions
I know this question has been asked before, but none of the existing SO
I know this question has been asked many times before but I can't find
I know this question has been asked many times before but I tried out
I know this question has been asked before, but I have tried the given
I know this type of question has been asked before, but I could not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.