Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Vungle Plugin works in Corona Simulator but not Corona Native Xcode Simulator
Started by mpayne002 Dec 14 2018 11:03 AM

1 reply to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

mpayne002

[GLOBAL: userInfoPane.html]
mpayne002
  • Observer

  • 22 posts
  • Corona SDK

Hi there,

 

 

I am having a bit of difficulty with the Vungle plugin.

 

 

I'm trying the most straight-foward test:

 

• Copy the 'Applications/Corona/Native/Project Template/App' to the desktop.

• Add the following build.settings:

    plugins =
    {
        ["plugin.vungle"] =
        {
            publisherId = "com.vungle"
        }
    }

• Add the following to the top of the main.lua:

local ads = require "plugin.vungle"

Then I compile which does complete successfully, but when I come to run in the Xcode simulator I get:

2018-12-14 18:48:06.630689+0000 App[49504:1072875] ERROR: Runtime error
module 'plugin.vungle' not found:resource (plugin.vungle.lu) does not exist in archive
    no field package.preload['plugin.vungle']
    no file '/Users/m/Library/Developer/CoreSimulator/Devices/0E6F0895-66A1-4D99-9C5B-9198FE888E27/data/Containers/Bundle/Application/E01FD095-D6D9-4F0E-A2AA-8C074792283F/App.app/corona-plugins/plugin/vungle.lua'
    no file '/Users/m/Library/Developer/CoreSimulator/Devices/0E6F0895-66A1-4D99-9C5B-9198FE888E27/data/Containers/Bundle/Application/E01FD095-D6D9-4F0E-A2AA-8C074792283F/App.app/plugin/vungle.lua'
    no file '/Users/m/Library/Developer/CoreSimulator/Devices/0E6F0895-66A1-4D99-9C5B-9198FE888E27/data/Containers/Bundle/Application/E01FD095-D6D9-4F0E-A2AA-8C074792283F/App.app/plugin/vungle.lua'
    no file '/Users/m/Library/Developer/CoreSimulator/Devices/0E6F0895-66A1-4D99-9C5B-9198FE888E27/data/Containers/Bundle/Application/E01FD095-D6D9-4F0E-A2AA-8C074792283F/App.app/corona-plugins/plugin/vungle.so'
    no file './plugin/vungle.so'
    no file '/Users/m/Library/Develo

I assume that the build process is not pulling down the vungle plugin, but I don't really know whats going on!

 

 

If I use the Corona Simulator to build it does indeed work, in the debug console it says it's found the native plugin:

Dec 14 07:01:24.717 Using additional build settings from: build.settings
                    Building: Copying app resources
                    Building: Unpacking build from server
Dec 14 07:01:24.785 Building: Adding plugins
Dec 14 07:01:24.833 Analyzing plugins...
Dec 14 07:01:24.834 Found native plugin: /Users/m/Desktop/Corona/Corona.app/.build/plugin.vungle
                        Done.
                    
                    Analyzing Lua plugins...
                    Examining plugin: plugin.vungle
                        Done.

Thanks for any help,

Mike



[TOPIC: post.html]
#2

mpayne002

[GLOBAL: userInfoPane.html]
mpayne002
  • Observer

  • 22 posts
  • Corona SDK

Ok so managed to work it out from reading this thread:

 

https://forums.coronalabs.com/topic/71614-using-plugins-in-corona-native-projects-ios-download-plugins-script-simpleluaextension-as-template/

 

Basically you need to force the download of plugins. You do this by:

• loading up your xcode project

• changing the current scheme to 'Download Plugins" (Click 'App' top left of the window next to the Play/Stop buttons)

• select 'Generic device'

• hit the Play (build then run) button.

 

Once that has built, it should have downloaded all the necessary plugins (that you have specified in build.settings).

 

Change your scheme back to App, select a simulator and Build/Run.

 

Mike




[topic_controls]
[/topic_controls]