I had a lua module included in my main.lua like this:
local myModule = require( "myModule")
But the actual lua file was named “MyModule.lua”. Note the capital ‘M’ vs. the lower case ‘m’ in the require code.
This actually worked fine on the Corona simulator, but it crashes to a black screen on the iPhone as well as the xCode simulator.
The crash logs were not helpful in tracking this down, and in fact lead me on a wild, 8-hour goose chase. Since it didn’t crash Corona I had added a lot of code before re-testing on the device which made it that much harder to track down.
Since case matters in lua, and obviously does when compiling apps. for the iPhone, I think this is a Corona bug. Ideally the Corona sim should behave just as an actual device. [import]uid: 9422 topic_id: 3596 reply_id: 303596[/import]