Welcome to the community forums!
Corona operates in two different ways. One is writing 100% of your code in Lua and using our Simulator to test and eventually build a deployable app. We all these simulator builds. The second way is to do what we call “native builds”. With native builds, you would use Xcode or Android Studio to write your native portions of your code (Java, C/C++, Objective C, Swift, etc.) and then write the Corona part of your code in Lua, but you would end up using Xcode or Android Studio to produce a deployable build.
In native programming, you have most of your app in Lua and then for the native portion, there are two ways to write the code, directly using the Lua->C Bridge. Or you can produce a plugin and link it in as a library.
You should start at the top level of the Native documentation instead of starting in the plugin code:
https://docs.coronalabs.com/native/index.html
This tutorial might also be useful for you:
https://docs.coronalabs.com/tutorial/native/iosIntro/index.html
Rob