Cocos2d-x compile error when building on simulator

Hi,

I’m currently working on a game using cocos2d-x 3.7.1. The problem I’m having is that I can only build the project if I select a real device (my iPhone 6). If I select any simulator device then I get this compile error:

CCDirector.h
Lexical or Preprocessor issue
‘stack’ file not found

I have tried reinstalling Xcode 6.4 but the problem persists. Any help will be really appreciated.

Thanks

Please I need help with this. Has any one experienced this issue before?

Thanks

I have the same Issue!! Help!
Who can help us??? Thx.

Do you have a class and header named “Block” by chance? If so, then rename them and you’ll fix the problem.

Yes,you are right!
I rename my Block.h can solve this issue.
Thank u bro.
Although, I rebuild a new project and import my code solve this issue.

Glad it worked. Creating a new project will fix the problem temporarily because as soon as you debug your game in a different simulator or your actual device the problem will appear again.