module plugin_coronaAds.lua not found

I can build for device fine, but when I build for the Xcode simulator I get this Runtime Error and the app won’t launch.

[sharedmedia=core:attachments:5575]

I don’t understand what is wrong, I’m not sure if this will be a problem in an App Store build.

Version 2016.2938 (2016.8.31)

Thanks,

Nail

Hey Nail,

This error is mostly due to a faulty build.settings. Could you post your build.setting here? Please make sure you have included the corona ads plugin in your build.settings as shown here: https://github.com/coronalabs/plugins-sample-coronaAds/blob/master/build.settings

Vamsee

here is my plugins section:

[lua]

plugins =
    {
        – key is the name passed to Lua’s ‘require()’
        [“CoronaProvider.native.popup.addressbook”] =
        {
            – required
            publisherId = “com.coronalabs”,
            supportedPlatforms = { iphone=true }
        },
        
        [“plugin.flurry.analytics”] =
        --[“CoronaProvider.analytics.flurry”] =
        {
            publisherId = “com.coronalabs”,
            supportedPlatforms = { iphone = true },
        },
        
        [“plugin.OneSignal”] =
        {
            publisherId = “com.onesignal”,
        },
        
       --[[] [“plugin.appodeal”] =
        {
            publisherId = “com.coronalabs”,
            supportedPlatforms = { iphone=true }
           – publisherId = “com.coronalabs”,
           – supportedPlatforms = { iphone=true, android=false, appletvos=false }
        }, --]]
        
        – Omit if you’re using ‘plugin.googleAnalytics’
      --[[]  [“plugin.google.play.services”] =
        {
            publisherId = “com.coronalabs”,
            supportedPlatforms = { android=true, [“android-kindle”]=true },
        }, --]]
        
        [“plugin.google.play.services”] =
        {
            publisherId = “com.coronalabs”,
            supportedPlatforms = { android=true }
        },
        [“shared.android.support.v4”] =
        {
            publisherId = “com.coronalabs”,
            supportedPlatforms = { android=true }
        },
        [“plugin.coronaAds”] =
        {
            publisherId = “com.coronalabs”,
            supportedPlatforms = { iphone=true, android=true }
        },
        [“plugin.adcolony”] =
        {
            publisherId = “com.coronalabs”,
            supportedPlatforms = { iphone=true, android=true }
        },
        
    },

[/lua]

I don’t think it’s a curly brace issue, since ads load correctly on iPhone 6.

Thanks for the help

Nail

The iPhone simulator is it’s own platform in our plugin loading schema. Please change the supportedPlatforms line to:

supportedPlatforms = { iphone=true, android=true , ["iphone-sim"] = true }

Rob

Thanks Rob, I’ll give that a try.

I suppose the docs should be updated with that supported platform.

.Nail

Guys,

I just wanted to add that it seems all pluggins need to have the [“iphone-sim”] = true added to the supportedPlatforms in order to launch in Xcode.

If I’m wrong, let me know.

Nail

Hey Nail,

This error is mostly due to a faulty build.settings. Could you post your build.setting here? Please make sure you have included the corona ads plugin in your build.settings as shown here: https://github.com/coronalabs/plugins-sample-coronaAds/blob/master/build.settings

Vamsee

here is my plugins section:

[lua]

plugins =
    {
        – key is the name passed to Lua’s ‘require()’
        [“CoronaProvider.native.popup.addressbook”] =
        {
            – required
            publisherId = “com.coronalabs”,
            supportedPlatforms = { iphone=true }
        },
        
        [“plugin.flurry.analytics”] =
        --[“CoronaProvider.analytics.flurry”] =
        {
            publisherId = “com.coronalabs”,
            supportedPlatforms = { iphone = true },
        },
        
        [“plugin.OneSignal”] =
        {
            publisherId = “com.onesignal”,
        },
        
       --[[] [“plugin.appodeal”] =
        {
            publisherId = “com.coronalabs”,
            supportedPlatforms = { iphone=true }
           – publisherId = “com.coronalabs”,
           – supportedPlatforms = { iphone=true, android=false, appletvos=false }
        }, --]]
        
        – Omit if you’re using ‘plugin.googleAnalytics’
      --[[]  [“plugin.google.play.services”] =
        {
            publisherId = “com.coronalabs”,
            supportedPlatforms = { android=true, [“android-kindle”]=true },
        }, --]]
        
        [“plugin.google.play.services”] =
        {
            publisherId = “com.coronalabs”,
            supportedPlatforms = { android=true }
        },
        [“shared.android.support.v4”] =
        {
            publisherId = “com.coronalabs”,
            supportedPlatforms = { android=true }
        },
        [“plugin.coronaAds”] =
        {
            publisherId = “com.coronalabs”,
            supportedPlatforms = { iphone=true, android=true }
        },
        [“plugin.adcolony”] =
        {
            publisherId = “com.coronalabs”,
            supportedPlatforms = { iphone=true, android=true }
        },
        
    },

[/lua]

I don’t think it’s a curly brace issue, since ads load correctly on iPhone 6.

Thanks for the help

Nail

The iPhone simulator is it’s own platform in our plugin loading schema. Please change the supportedPlatforms line to:

supportedPlatforms = { iphone=true, android=true , ["iphone-sim"] = true }

Rob

Thanks Rob, I’ll give that a try.

I suppose the docs should be updated with that supported platform.

.Nail

Guys,

I just wanted to add that it seems all pluggins need to have the [“iphone-sim”] = true added to the supportedPlatforms in order to launch in Xcode.

If I’m wrong, let me know.

Nail