object-c 如何调用js

请问cocos creator2.4.4,object-c 如何调用js, 需要import什么头文件,按照现在的文档编译不了的,是不是接口都变了,请指教!

Application::getInstance()->getScheduler()->performFunctionInCocosThread([=](){
    se::ScriptEngine::getInstance()->evalString("");
});

报错:
Member access into incomplete type ‘std::__1::shared_ptrcocos2d::Scheduler::element_type’ (aka ‘cocos2d::Scheduler’)

已经解决,谢谢

请问一下,怎么解决的?我这里提示:Use of undeclared identifier ‘Application’

对ios不懂的人表示不太友好

加个头文件就好了

#include <cocos/base/CCScheduler.h>

#import “cocos/platform/CCApplication.h”
#import “cocos/base/CCScheduler.h”
#import “cocos/scripting/js-bindings/jswrapper/SeApi.h”

官方文档里面也没有加,建议加上去,安卓是会自动添加的,但ios不会,如果不懂ios,可能整半天都不明白。