Failed to compile app with sdkbox and facebook

Failed to compile app with sdkbox and facebook
0

Good afternoon,

I am implementing Facebook 2.5.1.0 in SDKBOX 1.3.9 with Cocoscreator 2.2.0. The following error comes up when compiling

Blockquote
[arm64-v8a] Compile++ : cocos2djs_shared <= main.cpp
[arm64-v8a] Compile++ : cocos2djs_shared <= AppDelegate.cpp
[arm64-v8a] Compile++ : cocos2djs_shared <= jsb_module_register.cpp
[arm64-v8a] Compile++ : cocos2djs_shared <= PluginSdkboxAdsJS.cpp
[arm64-v8a] Compile++ : cocos2djs_shared <= PluginSdkboxAdsJSHelper.cpp
[arm64-v8a] Compile++ : cocos2djs_shared <= SDKBoxJSHelper.cpp
[arm64-v8a] Compile++ : cocos2djs_shared <= PluginAdMobJS.cpp
[arm64-v8a] Compile++ : cocos2djs_shared <= PluginAdMobJSHelper.cpp
[arm64-v8a] Compile++ : cocos2djs_shared <= PluginShareJS.cpp
[arm64-v8a] Compile++ : cocos2djs_shared <= PluginShareJSHelper.cpp
[arm64-v8a] Compile++ : cocos2djs_shared <= PluginFacebookJS.cpp
[arm64-v8a] Compile++ : cocos2djs_shared <= PluginFacebookJSHelper.cpp
/Users/operaciones/one-drive/OneDrive/app-proyectos/Rapido/Rapido/apps/jsb-link/frameworks/runtime-src/proj.android-studio/app/jni/…/…/…/Classes/PluginShareJSHelper.cpp:12:9: error: no member named ‘Director’ in namespace ‘cocos2d’
RUN_ON_MAIN_THREAD_BEGIN
^~~~~~~~~~~~~~~~~~~~~~~~
/Users/operaciones/one-drive/OneDrive/app-proyectos/Rapido/Rapido/apps/jsb-link/frameworks/runtime-src/proj.android-studio/app/jni/…/…/…/Classes/SDKBoxJSHelper.h:21:27: note: expanded from macro ‘RUN_ON_MAIN_THREAD_BEGIN’
auto scheduler = cocos2d::Director::getInstance()->getScheduler();
~~~~~~~~~^
1 error generated.
make: *** [/Users/operaciones/one-drive/OneDrive/app-proyectos/Rapido/Rapido/apps/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/release/obj/local/arm64-v8a/objs/cocos2djs_shared///__/Classes/PluginShareJSHelper.o] Error 1
make: *** Waiting for unfinished jobs…

plz replace Director with Application:

auto scheduler = cocos2d::Application::getInstance()->getScheduler(); \

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Thanks for the information