编译cocos2d的示例代码提示 'cocos2d.h' file not found

programmers-guide-samples

Conventions used in this book

  • auto is used for creating local variables.
  • using namespace cocos2d; is used to shorten types.
  • each chapter has a compilable source code sample to demonstrate concepts.
  • each chapter should subclass Ref
  • each chapter should do as much work in the constructor. no need for ::init()
  • model the code design after chapter 2’s example code. Follow these same conventions.

Prerequisites

  • make sure to drop in the pre-built libraries into libs/.
    For iOS you should have:
libs/libcocos2d iOS.a

已经按照要求编译好了libcocos2d iOS.a,也放进项目中的libs目录中。依然提示'cocos2d.h' file not found
这是什么问题?
我复制下载cocos2d-x-3.17文件夹里面的cocos2d.h文件过去项目中,设置路径,也是提示一大堆错误。
原本通过cocos2d_libs.xcodeproj编译出来的libcocos2d iOS.a也没有.h文件啊!!!
请官方人员回答下在Cocos2d-x 用户手册下面提供的本文档示例代码在 GitHub 下载 programmers-guide-samples 怎么编译会提示 'cocos2d.h' file not found

我也遇到这问题了?有人知道怎么回事吗?