[SOLVED]Firebase plugin import error in IOS

Hey guys, help me!
I’m use
cocos2d-x js: v3.10
sdkbox: v1.0.1.32
firebase: v2.3.17.7

When i call
sc->addRegisterCallback(register_all_PluginFirebaseJS);
sc->addRegisterCallback(register_all_PluginFirebaseJS_helper);
in AppDelegate.cpp

Error in xcode:

Undefined symbols for architecture x86_64:
“register_all_PluginFirebaseJS(JSContext*, JS::Handle<JSObject*>)”, referenced from:
AppDelegate::applicationDidFinishLaunching() in AppDelegate.o
“register_all_PluginFirebaseJS_helper(JSContext*, JS::Handle<JSObject*>)”, referenced from:
AppDelegate::applicationDidFinishLaunching() in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

thanks u

ok, enjoy your game dev.

1 Like

oh sorry, It’s successful because I commented
sc->addRegisterCallback(register_all_PluginFirebaseJS);
sc->addRegisterCallback(register_all_PluginFirebaseJS_helper);

when clear comment:
Error in xcode:
Undefined symbols for architecture x86_64:
“register_all_PluginFirebaseJS(JSContext*, JS::Handle<JSObject*>)”, referenced from:
AppDelegate::applicationDidFinishLaunching() in AppDelegate.o
“register_all_PluginFirebaseJS_helper(JSContext*, JS::Handle<JSObject*>)”, referenced from:
AppDelegate::applicationDidFinishLaunching() in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)


I checked with js 3.8.1 version by:

sdkbox import firebase

but it’s ok.

Please mark the title as resolved [SOLVED],
Thanks,