Mac 下编译quick的项目报错(常见错误)

错误如下:

Undefined symbols for architecture i386:
“std::string::find_last_of(char const*, unsigned long) const”, referenced from:
cocos2d::CCFileUtilsIOS::isFileExist(std::string const&) in libquickcocos2dx.a(CCFileUtilsIOS.o)
cocos2d::CCFileUtils::getPathForFilename(std::string const&, std::string const&, std::string const&) in libquickcocos2dx.a(CCFileUtils.o)
cocos2d::CCLabelAtlas::initWithString(char const*, char const*) in libquickcocos2dx.a(CCLabelAtlas.o)
cocos2d::CCSpriteFrameCache::addSpriteFramesWithFile(char const*) in libquickcocos2dx.a(CCSpriteFrameCache.o)
cocos2d::CCTMXMapInfo::startElement(void*, char const*, char const**) in libquickcocos2dx.a(CCTMXXMLParser.o)
cocos2d::extension::CCDisplayData::changeDisplayToTexture(char const*) in libquickcocos2dx.a(CCDatas.o)
cocos2d::extension::CCBReader::lastPathComponent(char const*) in libquickcocos2dx.a(CCBReader.o)

我用google搜索了下,还是没有找到正确的答案,希望有人可以解决下,因为这个错误太常见了。在线等~

程序在项目linking的时候错了。以前都是可以的,不知道为什么现在打开,运行就这样了。

我编译的quick 版本是2.2.1

如果quick版本有变化,请使用新的版本创建新工程,将原来的代码移过去重新编译