2nd Director page is black and dead on device, but works fine in simulator.
The 1st page is just a background image and a button that activates the change of screens to the 2nd page. The 2nd page uses physics and has dynamic objects. Any idea why the 2nd page is DOA when running on the device? I don’t see any more output messages on the console when I tap the button on page 1. This is my first time testing any Corona app on the iPod Touch. [import]uid: 23636 topic_id: 7775 reply_id: 307775[/import]
I’m not using Director, but I have exactly the same problem…my app runs fine in Corona simulator, but in xCode simulator, I just see a black and dead screen with no console output (I have multiple stdout stmts to try to find the offending code)…seems like an infinite loop of some type because the app is still running…it’s not a crash or freeze from what I can tell… [import]uid: 6175 topic_id: 7775 reply_id: 27601[/import]
Without the codes it’s almost impossible to know what you’re doing wrong [import]uid: 14018 topic_id: 7775 reply_id: 27641[/import]
Right now I’m trying to figure out how to see some trace messages so I can see how far I get into the code when director changes the scene. I’m trying to use a display.newtext object to show trace messages on the Xcode semulator’s screen. It looks like a possible way.
Does anyone have a better way? [import]uid: 23636 topic_id: 7775 reply_id: 27651[/import]
I found my problem.
The 2nd Director page uses the Particle Candy for Corona product. In the top part of my page file, this line was killing the app:
local Particles = require("…/Particle_Candy_for_CoronaSDK/lib_particle_candy")
I moved the file and changed the line to this and the problem was fixed:
local Particles = require(“lib_particle_candy”)
Only took all day to track it down by process of elimination.
So Ansca, what’s the scoop on allowed file organization? Looks like the device requires everything in one folder, but Corona does not?
[import]uid: 23636 topic_id: 7775 reply_id: 27724[/import]