cocos2d: fullPathForFilename: No file found at script/jsb_prepare.jsc. Possible missing file.
cocos2d: fullPathForFilename: No file found at script/jsb_boot.jsc. Possible missing file.
(evaluatedOK == JS_FALSE)
JS: /Users/js/Library/Developer/CoreSimulator/Devices/0B21F130-0C9E-4DD1-9E75-152E4A151D07/data/Containers/Bundle/Application/39A47893-FEF2-4D4D-ACDE-FB0C29CEFC53/testjs-mobile.app/script/ccui/jsb_cocos2d_ui.js:156:TypeError: cc.EditBox is undefined
The cocos new command is behaving strange for me with 3.14, but it seems like it’s only being strange when I attempt to create a new project with precompiled libraries (the -t binary option). For whatever reason, it’s assuming Cocos2d-x v3.14 is installed in the same directory as the Cocos app I downloaded and installed a while ago. Here’s what I’m seeing:
My environment variables, set by setup.py:
COCOS_CONSOLE_ROOT=/Library/cocos2d/cocos2d-x-3.14/tools/cocos2d-console/bin
COCOS_X_ROOT=/Library/cocos2d/cocos2d-x-3.14/tools/cocos2d-console/bin
My header search paths (in XCode build settings):
- /Applications/Cocos/Cocos2d-x/cocos2d-x-3.14
- /Applications/Cocos/Cocos2d-x/cocos2d-x-3.14/cocos/audio/include
- /Applications/Cocos/Cocos2d-x/cocos2d-x-3.14/cocos
- /Applications/Cocos/Cocos2d-x/cocos2d-x-3.14/extensions
- /Applications/Cocos/Cocos2d-x/cocos2d-x-3.14/external
- /Applications/Cocos/Cocos2d-x/cocos2d-x-3.14/external/chipmunk/include/chipmunk
There is no cocos2d-x-3.14 directory in the Applications/Cocos directory, that’s not where I installed 3.14. This obviously leads to compilation errors (it can’t find cocos2d.h). I’ve searched all of my environment variables, nothing is pointing to /Applications/Cocos, so I’m not sure where that’s coming from. Also, I ran the setup.py program from v3.14 and sourced my bash_profile file before building the building the precompiled libraries template, and the cocos gen-libs command output my static libraries in the COCOS_X_ROOT directory. I’m at a loss as to what’s going on here. Sure, this seems like an easy fix to do (go in an modify the header searched paths and linked library paths) but I’d prefer to find a proper solution.
steps to duplicate:
1.) cocos new -p com.example.test -l js
2.) cocos run -p ios (running as web is OK)
issue found, I commented the two lines below, I thought I could do it as the test project was not using cocos studio and the related ui moudle.
// ui can be commented out to reduce the package, attention studio need ui module
sc->addRegisterCallback(register_all_cocos2dx_ui);
sc->addRegisterCallback(register_all_cocos2dx_ui_manual);
So here is the problem, what should I do to run the test project if I don’t want to use cocos studio or cocos creater.
ATM, you can only compile and run the Tizen project with Tizen IDE or Tizen Studio. The command line compilation and run is not supported yet because of the Tizen toolchain issue.
We have to wait the official solution to the command line toolchain.
Hi Everyone, can you help me?
I want to run cocos2d-js test in my iPhone.
When I run cocos run -p ios, it always run in simulator.
How can I run js test in my iPhone?