cocos 3.x中oc调用js报错

cocos creator 2.4.x中,oc调用js的方法如下
#include “cocos/scripting/js-bindings/jswrapper/SeApi.h”
#import “cocos2d.h”
+(void) callJSEngineCallBack:(NSString ) funName andCMD:(NSString) cmdstr andContent:(NSString*)content
{
std::string fun = [funName UTF8String];
std::string param = [cmdstr UTF8String];
std::string paramContent = [content UTF8String];
std::string jsCallStr = cocos2d::StringUtils::format("%s("%s","%s");",fun.c_str(),param.c_str(),paramContent.c_str());
se::ScriptEngine::getInstance()->evalString(jsCallStr.c_str());

}

但是在cocos creator 3.4中,上述代码报错:
Use of undeclared identifier ‘cocos2d’
No member named ‘ScriptEngine’ in namespace ‘se’

请问怎么解决这个问题?

3.x oc call back ts

http://docs.cocos.com/creator/manual/zh/advanced-topics/js-oc-bridge.html

如果cocos3.4打iOS包,然后xcode打开工程,
这句编译不能通过,在cocos2.4.5都可以的。难道不兼容
se::ScriptEngine::getInstance()->evalString(jsCallStr.c_str());

it’s #import <cocos/bindings/jswrapper/SeApi.h>