This has come up a few times recently.
Director gives the obscure error:
ERROR Failed to execute new( params ) function …
If the app works fine in the Simulator but not on your device, it’s possibly because the Simulator is NOT CASE SENSITIVE.
Your iOS device IS CASE SENSITIVE. Possibly Androids too.
Check through your code and make sure you are calling functions with the correct case and have your assets with the same case as in your code.
eg.
[lua]myImage = display.newImageRect( “FunkyImage.png”, 39, 64 )
MyImage.x, MyImage.y = 200,300 – Different case for myImage[/lua]
You will probably get an error.
The same if your image in the actual folder is “funkyImage.png”
It will probably run fine in the Simulator but not once it’s on your iPhone.
Folder names can be an issue as well.
graphics/
is not the same as
Graphics/
Unfortunately, the error given by Director isn’t really helpful as it’s generic. You know something is wrong, but not exactly what.
Case bugs are not that easy to spot [import]uid: 10389 topic_id: 21758 reply_id: 321758[/import]