Default splash page showing then disappearing.

Hi there, 

I have an app that works perfectly in the simulator, but when loaded to a device (Android or iOS) the default splash page shows for approximately 1 second, then disappears, showing a black screen. When the default screen is removed, the app just shows a black screen indefinitely. My main.lua file looks like this:

[lua]storyboard = require(“storyboard”)

–declarations of constants, etc. 


storyboard.gotoScene(“scripts.firstscene”)[/lua]

then my first scene looks like this:

[lua]local scene = storyboard.newScene()

function scene:createScene(event)

    

    local firstSceneGroup = self.view

        

    --some declarations including “firstSceneGroup:insert(stuff…)”

    

end

    

function scene:enterScene(event)

    

    --some declarations 

end

function scene:exitScene(event)

    

    --some declarations

    

end

function scene:destroyScene(event)

end

scene:addEventListener(“createScene”, scene)

scene:addEventListener(“enterScene”, scene)

scene:addEventListener(“exitScene”, scene)

scene:addEventListener(“destroyScene”, scene)

return scene[/lua]

Any idea what’s happening?

Some fiddling with my code has yielded the following results:

Part of my declarations in the main.lua file include the following code:

[lua]mime = require “mime”

openssl = require “plugin.openssl”

cipher = openssl.get_cipher ( “aes-256-cbc” )

json = require “json”[/lua]

When removed, the app works fine. NOTE: in the simulator, the app works perfectly, just not on any device. 

Found the problem, I didn’t include the following code in my build.settings file:

[lua]plugins =

{
[“plugin.openssl”] = { publisherId = “com.coronalabs”, },
},[/lua]

Some fiddling with my code has yielded the following results:

Part of my declarations in the main.lua file include the following code:

[lua]mime = require “mime”

openssl = require “plugin.openssl”

cipher = openssl.get_cipher ( “aes-256-cbc” )

json = require “json”[/lua]

When removed, the app works fine. NOTE: in the simulator, the app works perfectly, just not on any device. 

Found the problem, I didn’t include the following code in my build.settings file:

[lua]plugins =

{
[“plugin.openssl”] = { publisherId = “com.coronalabs”, },
},[/lua]