macOS Build Failed RequestUnzipPlugins: failed to download plugin

This is mainly a mobile app but I’ve been building it for OSX for my personal use with no problem before I added plugins. Now it won’t build on macos

Jul 30 18:20:30.008: Building macOS app for <my email addy> with 2018.3335
Jul 30 18:20:34.652: Using custom build id from app bundle: 00000 (AppSettings.lua)
Jul 30 18:20:34.758: RequestUnzipPlugins: failed to download plugin: {
“clientCatalogKey”:“com.coronalabs/plugin.appodeal.StartApp”,
“isSupportedOnThisPlatform”:true,
“pluginName”:“plugin.appodeal.StartApp”,
“publisherId”:“com.coronalabs”
}
 

full build.settings blow… I tried adding the following:  (even though it says it’s a supported platform)

[‘plugin.appodeal.StartApp’] = { publisherId = ‘com.coronalabs’, supportedPlatforms = { android = true, iphone = true} },

… to see if it would bypass that line at least, but nope.  Added it to all the plugins lines and still nope.  Fails the same way every time.

So I’m not sure I understand how this works.

settings = { orientation = { -- Supported values for orientation: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight default = "landscapeRight", supported = { "landscapeRight", "landscapeLeft" }, }, -- -- Android section -- android = { usesPermissions = { "android.permission.INTERNET", "com.android.vending.BILLING", }, }, -- -- iOS section -- iphone = { xcassets = "Images.xcassets", plist = { UIStatusBarHidden = false, UILaunchStoryboardName = "LaunchScreen", NSAppTransportSecurity = { NSAllowsArbitraryLoads=true }, }, }, -- -- Plugins section -- plugins = { -- Appodeal -- -- Base ['plugin.appodeal.base'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.AmazonAds'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.GoogleAdMob'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.TwitterMoPub'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.StartApp'] = { publisherId = 'com.coronalabs' }, -- Banner -- ['plugin.appodeal.AppLovin'] = { publisherId = 'com.coronalabs' }, -- ['plugin.appodeal.FacebookAudience'] = { publisherId = 'com.coronalabs' }, -- ['plugin.appodeal.Flurry'] = { publisherId = 'com.coronalabs' }, -- ['plugin.appodeal.InMobi'] = { publisherId = 'com.coronalabs' }, -- ['plugin.appodeal.MyTarget'] = { publisherId = 'com.coronalabs' }, -- ['plugin.appodeal.MillenialMedia'] = { publisherId = 'com.coronalabs' }, -- ['plugin.appodeal.Yandex'] = { publisherId = 'com.coronalabs' }, -- Interstitial ['plugin.appodeal.AdColony'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.AppLovin'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.Chartboost'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.FacebookAudience'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.Flurry'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.InMobi'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.IronSource'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.Mobvista'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.MyTarget'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.StartApp'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.MillenialMedia'] = { publisherId = 'com.coronalabs' }, ['plugin.appodeal.Ogury'] = { publisherId = 'com.coronalabs' }, -- Rewarded Video -- ['plugin.appodeal.AdColony'] = { publisherId = 'com.coronalabs' }, -- ['plugin.appodeal.AppLovin'] = { publisherId = 'com.coronalabs' }, -- ['plugin.appodeal.Chartboost'] = { publisherId = 'com.coronalabs' }, -- ['plugin.appodeal.FacebookAudience'] = { publisherId = 'com.coronalabs' }, -- ['plugin.appodeal.Flurry'] = { publisherId = 'com.coronalabs' }, -- ['plugin.appodeal.InMobi'] = { publisherId = 'com.coronalabs' }, -- ['plugin.appodeal.IronSource'] = { publisherId = 'com.coronalabs' }, -- ['plugin.appodeal.Mobvista'] = { publisherId = 'com.coronalabs' }, -- ['plugin.appodeal.MyTarget'] = { publisherId = 'com.coronalabs' }, -- ['plugin.appodeal.StartApp'] = { publisherId = 'com.coronalabs' }, -- ['plugin.appodeal.Unity'] = { publisherId = 'com.coronalabs' }, -- ['plugin.appodeal.Vungle'] = { publisherId = 'com.coronalabs' }, -- ['plugin.appodeal.Tapjoy'] = { publisherId = 'com.coronalabs' }, -- Google IAP ["plugin.google.iap.v3"] = { publisherId = "com.coronalabs" }, -- Google Analytics ["plugin.googleAnalytics"] = { publisherId = "com.coronalabs" }, }, -- -- Project section -- excludeFiles = { -- Exclude unnecessary files for each platform all = { "Icon.png", "Icon-\*dpi.png", "Images.xcassets", }, android = { "LaunchScreen.storyboardc", }, }, }

Shortly after the original post, the following showed up in the console log.   Never seen it before in the eleventy-hundred failed build attempts prior.   I thought someone may have been flipping server bits behind the scenes.   Build still fails though.


Jul 30 20:49:23.045: PluginSync: plugin com.coronalabs/plugin.google.iap.v3 needs to be updated for platform mac-sim to build number: 3105
Jul 30 20:49:23.045: PluginSync: downloading plugin: http://plugins.coronasphere.com/com.coronalabs/plugin.google.iap.v3/2017.3105/mac-sim/plugin.google.iap.v3.zip
Jul 30 20:49:23.128: PluginSync: plugin com.coronalabs/plugin.appodeal.base needs to be updated for platform mac-sim to build number: 3184
Jul 30 20:49:23.128: PluginSync: downloading plugin: http://plugins.coronasphere.com/com.coronalabs/plugin.appodeal.base/2017.3184/mac-sim/plugin.appodeal.base.zip
Jul 30 20:49:23.192: PluginSync: plugin com.coronalabs/plugin.googleAnalytics needs to be updated for platform mac-sim to build number: 3005
Jul 30 20:49:23.193: PluginSync: downloading plugin: http://plugins.coronasphere.com/com.coronalabs/plugin.googleAnalytics/2016.3005/mac-sim/plugin.googleAnalytics.zip
Archive:  /Users/xxxxxxx/Library/Application Support/Corona/Simulator/Plugins/plugin.google.iap.v3.zip
  inflating: /Users/xxxxxxx/Library/Application Support/Corona/Simulator/Plugins/plugin_google_iap_v3.lua
Archive:  /Users/xxxxxxx/Library/Application Support/Corona/Simulator/Plugins/plugin.googleAnalytics.zip
  inflating: /Users/xxxxxxx/Library/Application Support/Corona/Simulator/Plugins/plugin_googleAnalytics.lua
Archive:  /Users/xxxxxxx/Library/Application Support/Corona/Simulator/Plugins/plugin.appodeal.base.zip
  inflating: /Users/xxxxxxx/Library/Application Support/Corona/Simulator/Plugins/plugin_appodeal.luaG


Basically, many plugins, in particular, Ad plugins only exist for mobile platforms.  We should have “stubs” for non-mobile platforms to prevent these build errors. In theory adding the supportedPlatforms key should prevent a given plugin from trying to load on non-mobile platforms.

You might want to try commenting out the entire Appodeal block and see if things work better for you.

Rob

So I tried that and the build failed with the same error. Deleting the section… same.    So apparently Build is not picking up changes in build.settings after an error?  Or did I miss something in the documentation that says you have to restart the simulator after updating build.settings?  That doesn’t seem right.

I added everything back, and added the supportedPlatforms bit back in and restarted the simulator and that worked.  :ph34r:

Bug or newbie error on my part?

Changing build.settings should cause the simulator to restart.

I don’t know why it mysteriously started working, but I’m glad it is working.

Rob  

Shortly after the original post, the following showed up in the console log.   Never seen it before in the eleventy-hundred failed build attempts prior.   I thought someone may have been flipping server bits behind the scenes.   Build still fails though.


Jul 30 20:49:23.045: PluginSync: plugin com.coronalabs/plugin.google.iap.v3 needs to be updated for platform mac-sim to build number: 3105
Jul 30 20:49:23.045: PluginSync: downloading plugin: http://plugins.coronasphere.com/com.coronalabs/plugin.google.iap.v3/2017.3105/mac-sim/plugin.google.iap.v3.zip
Jul 30 20:49:23.128: PluginSync: plugin com.coronalabs/plugin.appodeal.base needs to be updated for platform mac-sim to build number: 3184
Jul 30 20:49:23.128: PluginSync: downloading plugin: http://plugins.coronasphere.com/com.coronalabs/plugin.appodeal.base/2017.3184/mac-sim/plugin.appodeal.base.zip
Jul 30 20:49:23.192: PluginSync: plugin com.coronalabs/plugin.googleAnalytics needs to be updated for platform mac-sim to build number: 3005
Jul 30 20:49:23.193: PluginSync: downloading plugin: http://plugins.coronasphere.com/com.coronalabs/plugin.googleAnalytics/2016.3005/mac-sim/plugin.googleAnalytics.zip
Archive:  /Users/xxxxxxx/Library/Application Support/Corona/Simulator/Plugins/plugin.google.iap.v3.zip
  inflating: /Users/xxxxxxx/Library/Application Support/Corona/Simulator/Plugins/plugin_google_iap_v3.lua
Archive:  /Users/xxxxxxx/Library/Application Support/Corona/Simulator/Plugins/plugin.googleAnalytics.zip
  inflating: /Users/xxxxxxx/Library/Application Support/Corona/Simulator/Plugins/plugin_googleAnalytics.lua
Archive:  /Users/xxxxxxx/Library/Application Support/Corona/Simulator/Plugins/plugin.appodeal.base.zip
  inflating: /Users/xxxxxxx/Library/Application Support/Corona/Simulator/Plugins/plugin_appodeal.luaG


Basically, many plugins, in particular, Ad plugins only exist for mobile platforms.  We should have “stubs” for non-mobile platforms to prevent these build errors. In theory adding the supportedPlatforms key should prevent a given plugin from trying to load on non-mobile platforms.

You might want to try commenting out the entire Appodeal block and see if things work better for you.

Rob

So I tried that and the build failed with the same error. Deleting the section… same.    So apparently Build is not picking up changes in build.settings after an error?  Or did I miss something in the documentation that says you have to restart the simulator after updating build.settings?  That doesn’t seem right.

I added everything back, and added the supportedPlatforms bit back in and restarted the simulator and that worked.  :ph34r:

Bug or newbie error on my part?

Changing build.settings should cause the simulator to restart.

I don’t know why it mysteriously started working, but I’m glad it is working.

Rob