runScene 重大BUG

代码就一行
cc.director.runScene(‘Game’);
工程是空的啥都没有

Game场景就是空的

但是一运行就报错:


,原来用1.8.2版本报这个错,我就把1.8.2卸载了,然后装了一个1.9.0,还是这样,oh shit
官方人员求看下,现在完全不能用了。两个版本都一样

上面最后一个图不太清楚,给个文字版的:
Simulator: jsb: ERROR: File …\auto\jsb_cocos2dx_auto.cpp: Line: 6352, Function: js_cocos2dx_Director_runWithScene
Simulator: js_cocos2dx_Director_runWithScene : Error processing arguments
Simulator: E/jswrapper (6359): [ERROR] Failed to invoke js_cocos2dx_Director_runWithScene, location: …\auto\jsb_cocos2dx_auto.cpp:6359
Simulator: D/jswrapper (447): ScriptEngine::cleanup begin …

cc.director.loadScene(“xxxxxxxxx”);

官方的api文件上有这个

runScene 是私有 API,你不应该直接调用。新版本的 API 文档,不支持隐藏私有 API…… 旧版本里面是看不到这个 API 的
而且这个 API 的参数,是 Scene ,然而你传入的是 string,类型不对肯定用不了的。