Director ERROR: Failed to execute new( params ) function on 'xunbao'.

i used corona build a game ,the game Offline test is ok,and I 

Submit this game to the itunes approval 。now,the game is approved, but the game 

always says this : Director ERROR: Failed to execute new( params ) function on

 

‘xunbao’,

when game player download the game form itunes and open it to play。

 

 

I don’t know where is wrong ,

With the iphone, the ipad test no problem ,

But from the itunes download will appear this problem : 

 

Director ERROR: Failed to execute new( params ) function on

 

‘xunbao’

 

Please help me

 

It sounds like you have a failed function or statement that only runs on some occasions.  Since the Director class puts everything inside its own function, debugging it makes it harder.  So, whenever I get that error, it usually means I messed up in my programming, like a missing parenthesis or too many end statements in my if-then tests.

What I immediately do is comment out the first line, new = function ( params ), and the last line, end , then let the program run.  It will likely fail because it’s not properly running the Director class, but it will identify exactly which line where the my programming error occurred.

Hope that helps

It sounds like you have a failed function or statement that only runs on some occasions.  Since the Director class puts everything inside its own function, debugging it makes it harder.  So, whenever I get that error, it usually means I messed up in my programming, like a missing parenthesis or too many end statements in my if-then tests.

What I immediately do is comment out the first line, new = function ( params ), and the last line, end , then let the program run.  It will likely fail because it’s not properly running the Director class, but it will identify exactly which line where the my programming error occurred.

Hope that helps