AdMob plug-in causing build failure

I am following the AdMob example exactly, but here’s a couple snippets:

-- Build.settings plugins = { ["CoronaProvider.ads.admob"] = { -- required publisherId = "com.coronalabs", }, ["plugin.openudid"] = { -- required publisherId = "com.coronalabs", }, }, -- How I am requiring it ads = require("ads")

Here’s the error when I build:

2013-04-23 22:23:13.362 Corona Simulator[20637:707] Using Custom Build Id d07a3656fbc0240f6dd3ca5bf5aa923f

Using additional build settings from: /path/build.settings

Runtime error

    …shen/Desktop/Game.app/.build/libtemplate/Builder.lua:239: <error>{“status”:256,“message”:“ld: library not found for -lads-admob\nclang: error: linker command failed with exit code 1 (use -v to see invocation)”}</error>

stack traceback:

    [C]: ?

    [C]: in function ‘assert’

    …shen/Desktop/Game.app/.build/libtemplate/Builder.lua:239: in function ‘checkError’

    …shen/Desktop/Game.app/.build/libtemplate/Builder.lua:262: in function ‘build’

    ?: in function ‘buildExe’

    ?: in function <?:692>

Runtime error: …shen/Desktop/Game.app/.build/libtemplate/Builder.lua:239: <error>{“status”:256,“message”:“ld: library not found for -lads-admob\nclang: error: linker command failed with exit code 1 (use -v to see invocation)”}</error>

stack traceback:

    [C]: ?

    [C]: in function ‘assert’

    …shen/Desktop/Game.app/.build/libtemplate/Builder.lua:239: in function ‘checkError’

    …shen/Desktop/Game.app/.build/libtemplate/Builder.lua:262: in function ‘build’

    ?: in function ‘buildExe’

    ?: in function <?:692>

This is occurring when I build for iOS. I am using build 1093 (latest daily).

Quick follow-up. I tried building the AdMob sample and to my surprise, it worked. I removed the openudid plug-in declaration from build.settings and everything built successfully. If I remove AdMob and put in openudid, that works too.

So here’s the problem I have: How do I structure the plug-ins in build.settings so that I can include two?

this same case with me.

Corona support help me solve it .

please check this post

http://forums.coronalabs.com/topic/33995-daily-build-1089-plug-in-build-fail/

Please grab daily build 1095. The multiple plugin issue for iOS device builds should be fixed now.

Yep, 1095 fixes it :slight_smile:

Quick follow-up. I tried building the AdMob sample and to my surprise, it worked. I removed the openudid plug-in declaration from build.settings and everything built successfully. If I remove AdMob and put in openudid, that works too.

So here’s the problem I have: How do I structure the plug-ins in build.settings so that I can include two?

this same case with me.

Corona support help me solve it .

please check this post

http://forums.coronalabs.com/topic/33995-daily-build-1089-plug-in-build-fail/

Please grab daily build 1095. The multiple plugin issue for iOS device builds should be fixed now.

Yep, 1095 fixes it :slight_smile: