I’m comparing my files with the files in: https://github.com/sdkbox/sdkbox-sample-sdkboxplay
Some differences I found:
- Some of my files have variables declared as
double and the sample project has the same variables declared as
- In PluginSdkboxPlayJS.cpp line 121 and 139
my project has:
ok &= sdkbox::js_to_number(cx, argv, &arg1);
the sample project has:
ok &= jsval_to_int32(cx, argv, (int32_t *)&arg1);
- The sample project has:
sdkbox-sample-sdkboxplay/js/frameworks/runtime-src/Classes/PluginSdkboxPlay.hpp my project does not have those files.
I added those 2 files into my project and rebuilt using Cocos Creator. Then I re-opened the iOS project in Xcode, did a Project Clean and plugged my iPhone to try to run my game on it to test Game Center Leaderboards (yes my provisioning profile and certificates all work fine).
The new error I am getting is from PluginSdkboxPlay.cpp
No member named ‘PluginSdkboxPlay’ in namespace ‘sdkbox’