I've found [this 
page](https://nim-lang.github.io/Nim/nimc.html#crossminuscompilation-for-ios) 
which tells you how to convert your Nim files to C code and add them to an 
Xcode project, but what do you do after that to run the procedures defined in 
that Nim code?

I made a quick and dirty example, this is the entire file:
    
    
    proc NimMain() {.importc.}
    proc greet*() {.exportc.} =
      NimMain()
      echo("Hello from Nim!")
    
    
    Run

How do I call `greet` in this context? In theory I would run an init function 
defined in Nim which would run any initialisation code needed for an app.

Reply via email to