希望只是一个快速的。在XCode中,尝试导入一个名为cocos2d.h
的文件,它位于我的目录中并被复制,而不仅仅是引用,即它被复制到项目目录中。但是,当我尝试#import "cocos2d.h"
时,它会说'cocos2d.h'
文件未找到“
[[Error in red with the actual header file itself in view on the left directly next to it]]
希望有人知道这里发生了什么!!
答案 0 :(得分:1)
所以我前几天做了这个! 您需要做的就是指定文件夹,所以在这种情况下
import“cocos2d / cocos2d.h”
希望这有助于其他人!!