floatinghotpot / cordova-plugin-mmedia

Cordova/PhoneGap for Millennial Media Ad
7 stars 6 forks source link

Cordova CLI build failed #3

Open ruudruud opened 9 years ago

ruudruud commented 9 years ago

While building an iOS cordova application with Cordova CLI the build crashes with MMedia. All other ad network plugins work perfectly (Flurry, InMobi, etc.).

Commands used:

cordova plugin add com.google.cordova.admob-mmedia
cordova build ios

Error:

Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_GADAdMobExtras", referenced from:
      _OBJC_CLASS_$_GADMillennialExtras in libAdapterMillennial.a(GADMillennialExtras.o)
  "_OBJC_METACLASS_$_GADAdMobExtras", referenced from:
      _OBJC_METACLASS_$_GADMillennialExtras in libAdapterMillennial.a(GADMillennialExtras.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** BUILD FAILED **

The following build commands failed:
    Ld build/emulator/XXX\ XXX\ XXX.app/XXX\ XXX\ XXX normal i386 (1 failure)
ERROR building one of the platforms: Error: /Users/XXX/Desktop/XXX/platforms/ios/cordova/build: Command failed with exit code 65
You may not have the required environment or OS to build this project
floatinghotpot commented 9 years ago

Are you using Xcode 5 or 6? If using xcode 5, upgrade to 6 first.

ruudruud commented 9 years ago

Thank you for your quick reply. I am using Xcode version 6.2 (6C131e), this version was released 3 days ago.

floatinghotpot commented 9 years ago

I tried building and it did fail.

After some study, I think it's because the mmedia mediation adapter is not compatible with new admob sdk 7.0. You will find in the change log of admob sdk 7.0 release notes here: https://developers.google.com/mobile-ads-sdk/rel-notes#ios As mentioned: "Replaced GADAdMobExtras and DFPExtras with a single GADExtras class"

The mmedia adapter was build in Jun 2014, so it's outdated. Will contact millennial media to update the adapter, but they are quite slow to response.

ruudruud commented 9 years ago

Ugh, that's bad news. That is a big issue. Hopefully they will update the adapter soon.

Thanks for finding this issue so fast, and keep me posted please.

Chuckv01 commented 9 years ago

+1

matt-way commented 8 years ago

+1

This also appears to be relevant. https://groups.google.com/forum/#!topic/google-admob-ads-sdk/FH9y3S58JRk

It looks like the adapter has been updated, just not the plugin.