UnityAdmobSDK6.0에서 xcode 빌드할 때 ""_GADURequestInterstitial", referenced from: _Externs_GADURequestInterstitial_m7354DBBE6F0E4C60EFEE0EC733AAEC22D91E2B0C in GoogleMobileAds.

1880 단어 XcodeadMobUnity

환경


  • Unity2019 2.12f1
  • MacOS 11.4 Big Sur
  • Xcode 12.5.1

  • 사건



    Unity2019 2.12f1 + Unity Admob SDK 6.0에서 iOS 빌드 한 앱이
    아래 "_GADURequestInterstitial", referenced from: 라는 에러로 xcode상에서 빌드할 수 없게 되었다.


    Undefined symbols for architecture armv7:
      "_GADURequestInterstitial", referenced from:
          _Externs_GADURequestInterstitial_m7354DBBE6F0E4C60EFEE0EC733AAEC22D91E2B0C in GoogleMobileAds.iOS.o
         (maybe you meant: _Externs_GADURequestInterstitial_m7354DBBE6F0E4C60EFEE0EC733AAEC22D91E2B0C)
    ld: symbol(s) not found for architecture armv7
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    

    htps : //로 ゔぇぉ p. 는 bぉ. jp / entry / d도 b-6-0-0-er r
    htps : // 기주 b. 코 m / 오 g g a ds / 오 g g a ds

    상기 사이트님을 참고로,

    Xcode에서 Classes/Native/GoogleMobileAds.iOS.cpp
    GoogleMobileAds.iOS.cpp
    reinterpret_cast<PInvokeFunc>(GADURequestInterstitial)(___interstitial0, ___request1);
    

    상기 부분을 코멘트 아웃하면 무사 빌드가 통과했습니다. .

    조금 역기적인 느낌이 듭니다만, 일단 제가 만지고 있는 앱에서는, iPhone 실기로 admob 광고 문제 없게 움직이고 있었습니다.

    좋은 웹페이지 즐겨찾기