Using Plugins in Corona Native — iOS

To use plugins with Corona Native builds through Xcode, you must include them in build.settings just like you would for Corona Simulator builds, for example:

settings =
{
    plugins =
    {
        ["plugin.openssl"] =
        {
            publisherId = "com.coronalabs"
        },
    }, 
}

From here, you must run a process which contacts the Corona Marketplace and confirms that you have an active license for the plugin(s). If confirmed, Corona will install the library files and link them to your project.

Procedure

To perform the process described above, simply follow these steps:

  1. Open your project in Xcode.

  2. In the Xcode tool bar, click on the active scheme button and select Download Plugins:

  1. Click on the Run button to download the plugin(s):
  1. In the Xcode tool bar, click on the active scheme button again and select your main app. Now you can build your app with any plugin in the Corona Marketplace.

Note that you'll need to download the plugin(s) each time you add or change plugin settings/inclusions within build.settings.