Daily Build 1151 & 1152 [Resolved] - iOS device build error when gameNetwork.google plugin is being fetched, and iAds plugin issue

Issues with daily build 1151 on OSX.

  1.  gameNetwork.google plugin issue:

I can generate Android version of the app, and it installs and operates as expected on Android device.   However, when generating an iOS version, I get the following error and the build process fails:

A device build error occurred on the server.

BuildID: 51cb6e71bc2e5

Publisher: com.coronalabs

Plugin:  CoronaProvider.gameNetwork.google

The same is true with daily build 1144.

  1.  iAds plugin issue (module ‘CoronaProvider.ads.iads’ not found):

Since Google Play Game Services related API in my code will not be executed when I build for iOS, I thought commenting out the gameNetwork.google requirement from build.settings would simply enable me to build iOS version.  And yes, it does generate iOS build without an error…

However, when I install and launch the app on my iOS device, it throws out the error (see below) that kills the app.

At this point, unless I remove (or comment out) both iAds related code and gameNetwork.google requirement, I am unable to generate iOS build that would actually launch & operate properly…

Naomi

Jun 26 15:59:50 Naomis-iPod-touch xxxxxx[551] <Warning>: Runtime error

    ERROR: Could not load provider (iads) due to the following reason: module ‘CoronaProvider.ads.iads’ not found:resource (CoronaProvider.ads.iads.lu) does not exist in archive

        no field package.preload[‘CoronaProvider.ads.iads’]

        no file ‘/var/mobile/Applications/B1BE9CF8-5F3A-400C-BFD3-AF39809B849B/SpellGems.app/CoronaProvider.ads.iads.lua’

        no file ‘/var/mobile/Applications/B1BE9CF8-5F3A-400C-BFD3-AF39809B849B/SpellGems.app/CoronaProvider.ads.iads.lua’

        no file ‘./CoronaProvider.ads.iads.so’

        no file ‘/var/mobile/Applications/B1BE9CF8-5F3A-400C-BFD3-AF39809B849B/SpellGems.app/CoronaProvider.ads.iads.so’

        no file ‘./CoronaProvider.so’

        no file '/var/mobile/Applications/B1BE9CF8-5F3A-400C-BFD3-AF39809B849B/xxxxxx.app/CoronaProvider.so’CoronaProvider.ads.iads.

    stack traceback:

        [C]: ?

        [C]: in function ‘error’

        ?: in function ‘gotoScene’

        ?: in main chunk

Jun 26 15:59:50 Naomis-iPod-touch xxxxxx[551] <Warning>: errorMessage = “ERROR: Could not load provider (iads) due to the following reason: module ‘CoronaProvider.ads.iads’ not found:resource (CoronaProvider.ads.iads.lu) does not exist in archive\n\tno field package.preload[‘CoronaProvider.ads.iads’]\n\tno file ‘/var/mobile/Applications/B1BE9CF8-5F3A-400C-BFD3-AF39809B849B/xxxxxx.app/CoronaProvider.ads.iads.lua’\n\tno file ‘/var/mobile/Applications/B1BE9CF8-5F3A-400C-BFD3-AF39809B849B/xxxxxx.app/CoronaProvider.ads.iads.lua’\n\tno file ‘./CoronaProvider.ads.iads.so’\n\tno file ‘/var/mobile/Applications/B1BE9CF8-5F3A-400C-BFD3-AF39809B849B/xxxxxx.app/CoronaProvider.ads.iads.so’\n\tno file ‘./CoronaProvider.so’\n\tno file '/var/mobile/Applications/B1BE9CF8-5F3A-400C-BFD3-AF39809B849B/xxxxxx.app/CoronaProvider.so’CoronaProvider.ads.iads.”

Jun 26 15:59:50 Naomis-iPod-touch xxxxxx[551] <Warning>: Runtime error

    

    stack traceback:

        [C]: ?

        [C]: in function ‘error’

        ?: in function ‘gotoScene’

        ?: in main chunk

Jun 26 15:59:50 Naomis-iPod-touch xxxxxx[551] <Warning>: errorMessage = “\nstack traceback:\n\t[C]: ?\n\t[C]: in function ‘error’\n\t?: in function ‘gotoScene’\n\t?: in main chunk”

hi Naomi, please try again with build 1152 and let us know if you’re still experiencing the same problem.

Hi Albert, I downloaded 1152 and tried it, and the result is exactly the same.

iOS build with gameNetwork.google plugin requirement fails, and when I comment it out, it builds but launching the app triggers the iAds module not found error as before.

Naomi

Edit:  BTW, are we supposed to require iAds plugin in build.settings?  I’m assuming I don’t have to (since that’s how it used to work), but things could have changed while I was away.  If things have changed, please let me know (and perhaps point me to a proper doc/guide.)  It would be very much appreciated.

Yes, your build.settings should contain:

plugins = { ["CoronaProvider.ads.iads"] = { -- required publisherId = "com.coronalabs", }, },

Yikes, yes, that must’ve been the cause of the issue with iAds.  It occurred to me to check the sample code that come bundled with the SDK, and saw it there too.  Sorry about not checking sooner.

So only outstanding issue really is the gameNetwork.google plugin issue when building for iOS.  But I can work around it by commenting it out when building for iOS.

Thank you.

Naomi

I’m running into the same issue with iAds!  I’ve tried build 1152 and 1154. I even tried dropping back to 1144…  

File: module ‘CoronaProvider_ads_iads’ not found

Module ‘CoronaProvider_ads_iads’ not found:resource (CoronaProvider_ads_iads.lu) does not exist in archive

    no field package.preload[‘CoronaProvider_ads_iads’]

    no file ‘/Users/adamprice/Library/Application Support/Corona/Simulator/Plugins/CoronaProvider_ads_iads.lua’

    no file ‘/Users/adamprice/Documents/Programming/Dragon Sudoku/CoronaProvider_ads_iads.lua’

    no file ‘/Applications/CoronaSDK/Corona Simulator.app/Contents/Resources/CoronaProvider_ads_iads.lua’

    no file ‘/Users/adamprice/Library/Application Support/Corona/Simulator/Plugins/CoronaProvider_ads_iads.dylib’

    no file ‘./CoronaProvider_ads_iads.dylib’

    no file ‘/Applications/CoronaSDK/Corona Simulator.app/Contents/Resources/CoronaProvider_ads_iads.dylib’

Thank you,

Adam

Hey, Adam @priceadb, did you include the plugin requirement in build.settings as @albert90 suggested above?  As soon as I added it to the build.settings, the iAds issue went away for me.

Naomi

Hi @Naomi, yes, I do have that in my build.settings and I still receive the error.  

@albert90, any other suggestions?

Thanks,

Adam

Can you post your build.settings? 

Hey, Adam @priceadb, it may not help but just in case, do you mind closing Corona SDK and relaunching it?  If it doesn’t fix the issue, perhaps, restart your computer, relaunch Corona SDK and see if it fixes it.

Naomi

@Naomi, I’ve rebooted and still get the issue.

Rob, Here is my build.settings.

settings = 

{

    ipad =

    {

        plist =

        {

             CFBundleIconFile = “Icon.png”,

             CFBundleIconFiles = {

                    “Icon.png” , 

                    “Icon@2x.png” , 

                    “Icon-72.png” , 

                    “Icon-144.png” , 

             UIPrerenderedIcon = true, 

             },

             UISupportedInterfaceOrientations = {

                “UIInterfaceOrientationPortrait”

             },

             UIInterfaceOrientation = {

                “UIInterfaceOrientationPortrait”

             }

        },

    },

    iphone =

    {

        plist =

        {

             CFBundleIconFile = “Icon.png”,

             CFBundleIconFiles = {

                    “Icon.png” , 

                    “Icon@2x.png” , 

                    “Icon-72.png” , 

                    “Icon-144.png” , 

             UIPrerenderedIcon = true, 

             },

             UISupportedInterfaceOrientations = {

                “UIInterfaceOrientationPortrait”

             },

             UIInterfaceOrientation = {

                “UIInterfaceOrientationPortrait”

             }

        },

    },

    plugins =

    {

        [“CoronaProvider.ads.iads”] =

        {

            – required

            publisherId = “com.coronalabs”,

        },

    },  

}

The “iPad =” setting is not valid in build.settings. The “iPhone =” setting is for iOS in general. It applies to both iPhone and iPad. The other option is “android”

@Tom, that’s good to know.  I had copied that “iPad” section from an example on the site, but I’ve now removed it and still receive the same error.  Any other ideas on getting the iAds working?

Can anyone help me with this problem?  I’m currently running build 1152 and I still get the error below when trying to incorporate iAds…

Module ‘CoronaProvider_ads_iads’ not found:resource (CoronaProvider_ads_iads.lu) does not exist in archive

    no field package.preload[‘CoronaProvider_ads_iads’]

    no file ‘/Users/adamprice/Library/Application Support/Corona/Simulator/Plugins/CoronaProvider_ads_iads.lua’

    no file ‘/Users/adamprice/Documents/Programming/Dragon Sudoku/CoronaProvider_ads_iads.lua’

    no file ‘/Applications/CoronaSDK/Corona Simulator.app/Contents/Resources/CoronaProvider_ads_iads.lua’

    no file ‘/Users/adamprice/Library/Application Support/Corona/Simulator/Plugins/CoronaProvider_ads_iads.dylib’

    no file ‘./CoronaProvider_ads_iads.dylib’

    no file ‘/Applications/CoronaSDK/Corona Simulator.app/Contents/Resources/CoronaProvider_ads_iads.dylib’

Have you tried Uninstalling? Have you tried the sample app? You are building for iOS right?

hi Naomi, please try again with build 1152 and let us know if you’re still experiencing the same problem.

Hi Albert, I downloaded 1152 and tried it, and the result is exactly the same.

iOS build with gameNetwork.google plugin requirement fails, and when I comment it out, it builds but launching the app triggers the iAds module not found error as before.

Naomi

Edit:  BTW, are we supposed to require iAds plugin in build.settings?  I’m assuming I don’t have to (since that’s how it used to work), but things could have changed while I was away.  If things have changed, please let me know (and perhaps point me to a proper doc/guide.)  It would be very much appreciated.

Yes, your build.settings should contain:

plugins = { ["CoronaProvider.ads.iads"] = { -- required publisherId = "com.coronalabs", }, },

Yikes, yes, that must’ve been the cause of the issue with iAds.  It occurred to me to check the sample code that come bundled with the SDK, and saw it there too.  Sorry about not checking sooner.

So only outstanding issue really is the gameNetwork.google plugin issue when building for iOS.  But I can work around it by commenting it out when building for iOS.

Thank you.

Naomi

Ok, uninstalling worked.  Thank you.