Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Problem with iOS build and unity mediation

Discussion in 'iOS and tvOS' started by JohnKoum, Apr 18, 2022.

  1. JohnKoum

    JohnKoum

    Joined:
    Nov 19, 2021
    Posts:
    3
    Hello I have a problem with building unity in iOS XCode but i have an error. It seems it cant find mediation package and it shows this problem.

    ld: warning: Could not find or use auto-linked framework 'UnityMediationS2SService'
    ld: warning: Could not find or use auto-linked framework 'UnityMediationInstantiationService'
    ld: warning: Could not find or use auto-linked framework 'UnityMediationTrackingService'
    Undefined symbols for architecture arm64:
    "_OBJC_CLASS_$_GADRewardedAd", referenced from:
    objc-class-ref in UnityMediationAdmobAdapter(UMSAdmobRewardedAd.o)
    (maybe you meant: _OBJC_CLASS_$_GADRewardedAdBridgeV8, _OBJC_CLASS_$_GADRewardedAdBridge )
    "_OBJC_CLASS_$_GADExtras", referenced from:
    objc-class-ref in UnityMediationAdmobAdapter(UMSAdmobInterstitialAd.o)
    objc-class-ref in UnityMediationAdmobAdapter(UMSAdmobRewardedAd.o)
    "_kGADSimulatorID", referenced from:
    -[UMSAdmobInterstitialAd load:] in UnityMediationAdmobAdapter(UMSAdmobInterstitialAd.o)
    -[UMSAdmobRewardedAd load:] in UnityMediationAdmobAdapter(UMSAdmobRewardedAd.o)
    "_OBJC_CLASS_$_GADInterstitialAd", referenced from:
    objc-class-ref in UnityMediationAdmobAdapter(UMSAdmobInterstitialAd.o)
    (maybe you meant: _OBJC_CLASS_$_GADInterstitialAdBridgeV8)
    "_OBJC_CLASS_$_GADRequest", referenced from:
    objc-class-ref in UnityMediationAdmobAdapter(UMSAdmobInterstitialAd.o)
    objc-class-ref in UnityMediationAdmobAdapter(UMSAdmobRewardedAd.o)
    (maybe you meant: _OBJC_CLASS_$_GADRequestBridge)
    "_OBJC_CLASS_$_GADMobileAds", referenced from:
    objc-class-ref in UnityMediationAdmobAdapter(UMSAdmobAdapterFactory.o)
    objc-class-ref in UnityMediationAdmobAdapter(UMSAdmobInterstitialAd.o)
    objc-class-ref in UnityMediationAdmobAdapter(UMSAdmobInterstitialAdapter.o)
    objc-class-ref in UnityMediationAdmobAdapter(UMSAdmobRewardedAd.o)
    objc-class-ref in UnityMediationAdmobAdapter(UMSAdmobRewardedAdapter.o)
    (maybe you meant: _OBJC_CLASS_$_GADMobileAdsBridge)
    ld: symbol(s) not found for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    thanks
     
  2. esatkoseoglu

    esatkoseoglu

    Joined:
    Jan 18, 2022
    Posts:
    3
    Hello,

    I have a similar problem.
    I am trying to build iOS version using Xcode.
    One of error lines like that:

    Undefined symbols for architecture arm64:

    "_OBJC_CLASS_$_GADRewardedAd", referenced from:

    objc-class-ref in UnityMediationAdmobAdapter(UMSAdmobRewardedAd.o)

    (maybe you meant: _OBJC_CLASS_$_GADRewardedAdBridgeV8, _OBJC_CLASS_$_GADRewardedAdBridge )
     
  3. roointan

    roointan

    Joined:
    Jan 8, 2018
    Posts:
    78
    I have the same problem.
    Have you found a solution for this?
    This happened after updating a bunch of SDKs and disabling bitcode.
     
  4. HarisKap

    HarisKap

    Joined:
    Dec 10, 2012
    Posts:
    20
    I have the same issue, why they are releasing something broken/
     
  5. roointan

    roointan

    Joined:
    Jan 8, 2018
    Posts:
    78
    @HarisKap If you're using version 9.14 of Google ads, force it to use 9.13
    This solved the problem for us.
     
    HarisKap likes this.