Hi there! we are creating scenes programatically too with this method.
Have you tried to build it for Android? In our case, the first time the application runs in the device we have no errors but corona detects that ccscene file is missing and generate a empty file sceneName.ccscene inside /data/data/com.example.appname/files/coronaResources/
Next times you run the app, corona tries to load the generated sceneName.ccscene causing an error:
I/Corona ( 3358): GOTO SCENE WelcomeView I/Corona ( 3358): Runtime error I/Corona ( 3358): ?:0: attempt to index a nil value I/Corona ( 3358): stack traceback: I/Corona ( 3358): ?: in function 'load' I/Corona ( 3358): ?: in function 'gotoScene' I/Corona ( 3358): F:\corona\Src\poc\Application.lua:109: in function 'showView' I/Corona ( 3358): F:\corona\Src\poc\controller\ApplicationController.lua:28: in function 'onRegister'
When you delete *.ccscene files from /data/data/com.example.appname/files/coronaResources/ the application runs without problems.
Is there any option to avoid this behavior??
Thanks!