Loading external Lua files runs fine in corona crashes on iPhone

Hi

I am loading external lua library files that I created in folders relative to the main.lua file for example:

local externallib = require(“somefolder/externallibfile”)

This works fine on the corona simulator and the externallibfile gets loaded correctly. However when I test this program on the actual iPhone the application crashes. Is this a bug?

Kind Regards
Elvan [import]uid: 12167 topic_id: 7740 reply_id: 307740[/import]

Don’t put your code files in sub-folders. I’m surprised that even worked in the simulator, I didn’t think it did.

You can put graphics and sounds in sub-folders but not code files. Indeed, that is how I have my project organized: graphics in the directory “graphics”, audio in “audio”, and all code in the root folder. [import]uid: 12108 topic_id: 7740 reply_id: 27461[/import]