系统:Mac
软件:Xcode 6.1
问题:路径识别不了
引擎:cocos2dx-3.2
在AppDelegate.cpp里边的applicationDidFinishLaunching()函数里加入以下代码
std::vectorstd::string searchPath;
searchPath.push_back(“height_864”);
FileUtils::getInstance()->setSearchPaths(searchPath);
在其他文件里这样使用的时候报错.所有的文件只要加入文件夹名就报错
groupLabel = Label::createWithBMFont(“fonts/bitmapFontChinese.fnt”, " ");
fullPathForFilename: No file found at fonts/bitmapFontChinese.fnt. Possible missing file.
但是这样的使用就不会了
groupLabel = Label::createWithBMFont(“bitmapFontChinese.fnt”, " ");
所有的资源文件都是这样. 资源文件如下图
