[SOLVED]Firebase plugin import error in IOS

[SOLVED]Firebase plugin import error in IOS
0.0 0

#1

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


#3

ok, enjoy your game dev.


#4

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)


#5


I checked with js 3.8.1 version by:

sdkbox import firebase

but it’s ok.


#6

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