Search code examples
iphonexcodecocos2d-x

error generate in SonarFramework.h #include "extensions/cocos-ext.h" file not found


I using the cocos2dx c++ for game devlepoment.Now I want implement sharing in game.I add the sonarcocoshelpercpp folder in class folder and social.framework in framework folder then gnerate the error on sonarFremework.h file that is "extensions/cocos-ext.h" file not found.Any solution for this issue??


Solution

  • You will need to check the Header Search Paths under Build Settings for the build target that is emitting this error, and ensure that the headers list includes all the relevant cocos folders.

    If you installed your project using the Cocos Launcher then the first (and for that #include critical) entry should be

    /Applications/Cocos/frameworks/cocos2d-x-3.7
    

    (Assuming, from the tags, that this is a XCode on Mac project)