Using createProject( key ) and iOS filesystem


I’ve noticed that createProject() only works within Codea and doesn’t when exported to XCode as it outputs an error and crashes the app in the XCode Simulator.
This makes sense, obviously, as you normally wouldn’t need such a function in an exported project.
However, after a break of a couple of months I’ve now continued working on a visual editor designed for 2D game development, which I would like to work as a standalone application outside of Codea.
Is there a workaround to achieve this?

My second question is about the iOS filesystem. Is there a way for Codea projects to import images, sounds, etc. from the files app / Is it possible for an exported project to work with the files app?

Thanks in advance for any help!