I have a project created with cocos2d-x using javascript, it works perfectly.
So, I created a javascript project using the ‘tools/project-creator/create_project.py’ .
For default, the project runs a file called ‘cocos2d-jsb.js’ through the following script.
ScriptingCore::getInstance()->runScript("cocos2d-jsb.js");
But I want to create another name for this file, like ‘main.js’ to run the script this way
ScriptingCore::getInstance()->runScript("main.js");
I add the file to xcode, I run the project, the project compile successfully, but I receive the following error:
Cocos2d: JS: :0:can't open main.js: No such file or directory
Any idea how resolve that, I’ll appreciate any help.