Cocos2d-x CCRef.h Error - c++

I'm new in Cocos2d-x development and I have the problem that everytine I want to compile my game for an other device than my iPhone 5s, it gives me an error that every type name of a class in my CCRef.h is a fault.
I tried to compile it for every iOS version as possible and with many Cocos 2d-x versions. At the moment I'm using Cocos 2d-x version 3.6, the currently Xcode version and an iPhone with iOS 8.3!
I hope you can help me fix this!

Related

After upgrading to Xcode 10, my Box2D game no longer works

It ran fine before, but after upgrading to Xcode 10, my c++ Box2D game no longer runs. Been working on this same project for years, upgraded through lots of Xcode versions without any issues before.
The error:
Lexical or Preprocessor Issue: 'memory' file not found in b2Body.h
Tried Clean Build Folder, no luck. My desktop is on Mojave, my laptop is on High Sierra, so OS version seems irrelevant, but the game ran fine on Xcode 9.
Any other ideas?
Turned out to be a relatively simple solution.
Box2D, the physics engine, needed updated to the latest version (likely the developers of the library fixed that std/libc++ issue mentioned above since the last time downloaded it).

cocos2d-x 3.9 Android marshmallow c++ to Java JNI

Error:
Java function:
I am making game using cocos2d-x 3.9. I could unity ads in my game using my code. But in Android 6.0.1 my code is not working. Everytime when I execute jni function, my app will down. How can I solve this problem?
I heard, in Android 6.0.1 have strict jni policy.
I am searching now..., but I have no much time... if you know about that, help me...

Porting SDL App to iOS

I have created a small game in C++ using only SDL (no OpenGL), and want to port it to iOS 6.
I have no intention of releasing it publicly, It's just for personal use.
The app uses only the barebones SDL library itself, no ttf or image.
So, what would be the best hassle-free way of porting the game to iOS 6? The game's SDL version is 1.2, however it would be possible to port it to 2.0.
A tutorial or something similar would be of tremendous help!
Thanks
Port to 2.0, then just follow the SDL 2.0 iOS HOWTO. SDL 2.0 has native iOS support.

cocos2dx error: opengl version too old

I've upgraded my windows from 7 to 8 and I've started to compile cocos2dx but there is an error while the cmd is opening :
Your OpenGl Version is 1.1.0, but Cocos2d-x requires OpenGl 1.5 or higher on Windows. Please upgrade the driver of your video card
But cocos2dx was running well before upgrade!
could u tell me what is the problem and what should I do?
I'm using visual studio 2010.
you can see the cocos2d-x forum about this problem. watch this link.
your driver is not updated or you didn't install opengl. you can use older versions of cocos2d-x too. see this link.
You should update your graphic card (video driver) drivers or second way you try to run old version of cocos 2dx . i am also suffered this problem

Can´t create iOS projects with Cocos 3D, only Mac projects

I install Cocos 2D and Cocos 3D.
I can create Cocos 2D projects, but I can´t create Cocos 3D projects.
I select Cocos 3D in iOS section, but the created project is for MAC.
Why ??
I can´t solve it.
Thanks!
Cocos3D is for Mac only, and it only works with cocos2d v1.x. It may not work with the very latest version v1.1 of cocos2d, so you might want to try the v1.0.1 stable version instead.
In any case you have to re-install the cocos2d & cocos3d templates if you used a different version.