Game works in emulator, but not on devices

My game just shows a black screen and exits immediately after opening. It is built on a mac, on the latest version, and with proper keystore files (made them from tutorials on here). The curious part is that it works fine within Corona Simulator.

ADB shows “I/Corona  ( 8941): This application failed to load and execute main.lua” 

My game worked on a version of corona from two years ago, but I think might be irrelevant. 

My “main.lua” is:

display.setStatusBar(display.HiddenStatusBar) storyboard = require "storyboard" storyboard.gotoScene( "start" )

and that’s it.

Are there more messages in the console log?

Vr3JinC.png

Nope. (These are just multiple attempts)

Any suggestions? I tried changing storyboard to composer and got it to work. But it returned the same error on a physical device, so later I changed everything back to storyboard. Otherwise I would have to edit a huge chunk of code that already works  :D .

What happens if you build the “HelloWorld” sample app and install it?

Rob

“HelloWorld” app works.

Ok, I rebuilt the whole code using composer instead of storyboard and it works now.

Are there more messages in the console log?

Vr3JinC.png

Nope. (These are just multiple attempts)

Any suggestions? I tried changing storyboard to composer and got it to work. But it returned the same error on a physical device, so later I changed everything back to storyboard. Otherwise I would have to edit a huge chunk of code that already works  :D .

What happens if you build the “HelloWorld” sample app and install it?

Rob

“HelloWorld” app works.

Ok, I rebuilt the whole code using composer instead of storyboard and it works now.