Using plugins in Corona Native projects (iOS)

Using plugins in Corona Native projects (iOS)

With the new unified Corona (Corona + Corona Native), some developers have asked how to include plugins in Corona Native projects. The process outlined here is for iOS only, but we plan to post similar instructions for Android Studio soon.

IMPORTANT: The process outlined herein requires daily build 2017.3103 or later.

Essentially, 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:

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:
  3. Click on the Run button to download the plugin(s):
  4. In the Xcode tool bar, click on the active scheme button 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.

REMINDER: Unless you need access to specific native libraries, offline builds. or you are building native-based plugins, you can (and should) build and ship apps using the Corona Simulator and Corona Lua APIs. Essentially, while some specific tasks may require Corona Native, they should only be implemented by developers who have previous experience with native functionality.

Rob Miracle
[email protected]

Rob is the Developer Relations Manager for Corona Labs. Besides being passionate about helping other developers make great games using Corona, he is also enjoys making games in his spare time. Rob has been coding games since 1979 from personal computers to mainframes. He has over 16 years professional experience in the gaming industry.

No Comments

Sorry, the comment form is closed at this time.