求版主,cocos2dx问题

安装cocos引擎(不是cocos2dx引擎文件),新建一个工程会打开一个coocstdio工程,然后会有个预览,能看你修改过的界面,点击预览,他会打开cocos安装目录下的cocos-simulator-bin文件下对应平台的一个模拟器来看预览效果,直接运行这个Simulator.app(Simulator.exe)能看到打印的log,现在cocos2d-js后面的版本都没有方便的ide看看log,我想把这个Simulator当作模拟器来运行我自己的项目,现在怎么用Simulator这个加上什么命令来运行自己的项目工程看效果呢?如果我修改了c++那边代码,怎么从新编译一个Simulator文件出来呢?
http://www.aiuxian.com/article/p-3183149.html
这个网址上有说,但是用3.10的不行,请问能不能答答上面我问的2个问题呢

ps:Simulator看效果就像一起quick-coocs2dx的player一样的

cocos中找win32 simulator文件:
simulator.exe -workdir d:__(模拟器工作目录) -entry src/main.lua (lua 脚本运行接口) -debugger -studio

Simulator给我单独挪出来别的地方了,我在mac上,终端输入 /XXXXXX/Simulator.app/Contents/MacOS/Simulator -workdir /XXXXXXSSS/CityCard

出现这些log

{
cocos2d.x.version: cocos2d-x-3.9
cocos2d.x.build_type: DEBUG
cocos2d.x.compiled_with_profiler: false
cocos2d.x.compiled_with_gl_state_cache: true
}

WORKAREA WIDTH 1861.00, HEIGHT 1036.00
FRAME SCALE = 1.00
GLFWError #65544 Happen, Failed to retrieve display name

{
gl.supports_vertex_array_object: true
cocos2d.x.version: cocos2d-x-3.9
gl.vendor: Intel Inc.
gl.supports_PVRTC: false
gl.renderer: Intel HD Graphics 4000 OpenGL Engine
cocos2d.x.compiled_with_profiler: false
gl.max_texture_size: 16384
gl.supports_ETC1: false
gl.supports_BGRA8888: false
cocos2d.x.build_type: DEBUG
gl.supports_discard_framebuffer: false
gl.supports_NPOT: true
gl.supports_S3TC: true
gl.version: 2.1 INTEL-8.28.32
gl.supports_ATITC: false
gl.max_texture_units: 16
cocos2d.x.compiled_with_gl_state_cache: true
}

Project Config:
project dir: /Users/rains/Documents/cocos/CityCard/
writable path: (PROJDIR)/ script file: (PROJDIR)/main.js
frame size: 960 x 640
frame scale: 1.00
show console: YES
write debug log: NO ()
listen:
debugger: none
add searching path:


LOAD Js FILE: main.js

JS: :0:can’t open : No such file or directory

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: (string):1:TypeError: cc.Class is undefined

JS: :0:can’t open : No such file or directory

JS: /Users/rains/Documents/cocos/CityCard/main.js:43:TypeError: cc.game is undefined

Evaluating main.js failed (evaluatedOK == JS_FALSE)
iShow!

什么问题了呢?

经测试,simulator是可以使用的。
测试步骤:cocos新建工程(framework)
测试结果如图所示。

你出现这个log应该是文件配置有问题,没引用好文件导致的。