can't build when using openudid

Hi,

Trying to use openudid (to help uniquely and easily identify Android user for private client).

As per https://docs.coronalabs.com/plugin/openudid 

I’ve added the plugin line to my build settings. 

That alone prevents my app from building.  (minimal build settings shown below)

If I add:

   local openudid = require( “plugin.openudid” )

near the start of my main.lua file, I still can’t build the app.

Note: there are no uses of openudid (yet) in my code, just the “require”.

In fact, I’ve shortened the sample.  Here’s my *entire* main.lua file:

   local openudid = require (“plugin.openudid”)

Using: Corona Simulator: 2017.3184 (2017.12.8) on MacBook Pro, Sierra

Screencaps below the quoted text (from console log) show failure.

                    BuildID: 5a9a1f6822954

Mar 02 08:07:07.672 ERROR: An error occurred during build (corona.build.7). The server returned the following message:

                    —

                    A device build error occurred on the server. 

                    

                    Error: Get plugin failed. 

                    

                    Plugin: plugin.openudid 

                    Publisher: com.coronalabs 

                    User Account: sieler@allegro.com

                    

                    BuildID: 5a9a1f6822954

                    —

Mar 02 08:07:07.673 

Mar 02 08:07:07.691 Android build failed (5) after 5 seconds

Mar 02 08:07:07.954 ERROR: Build Failed: A device build error occurred on the server. 

                    

                    Error: Get plugin failed. 

                    

                    Plugin: plugin.openudid 

                    Publisher: com.coronalabs 

                    User Account: sieler@allegro.com

                    

                    BuildID: 5a9a1f6822954

                    

                    Error code: 5

build.config:

settings = { orientation = { default = "portrait", supported = { "portrait", }, }, android = { usesPermissions = { "android.permission.INTERNET", }, }, plugins = { ["plugin.openudid"] = { publisherId = "com.coronalabs"}, }, excludeFiles = { android = { "Icon.png", "Icon-??.png", "Icon-???.png", "LaunchScreen.storyboardc", }, }, }

The OpenUDID plugin is for iOS only.  I would add a supportedPlatforms line to your build.settings so that we don’t attempt to load the plugin for that platform:

-- -- Plugins section -- plugins = { ["plugin.openudid"] = { publisherId = "com.coronalabs", supportedPlatforms = { "iphone" } }, },

I’ve updated the Marketplace entry to point that out but the docs for the plugin identify it as an iOS only.

Rob

Thanks

The OpenUDID plugin is for iOS only.  I would add a supportedPlatforms line to your build.settings so that we don’t attempt to load the plugin for that platform:

-- -- Plugins section -- plugins = { ["plugin.openudid"] = { publisherId = "com.coronalabs", supportedPlatforms = { "iphone" } }, },

I’ve updated the Marketplace entry to point that out but the docs for the plugin identify it as an iOS only.

Rob

Thanks