Cocos2dx:架构i386的未定义符号

时间:2014-07-28 04:32:55

标签: ios xcode5 cocos2d-x

我将项目cocos2dx导入Xcode 5,然后构建它。

Undefined symbols for architecture i386:
  "cocos2d::extension::CocoLoader::ReadCocoBinBuff(char*)", referenced from:
      cocos2d::extension::CCDataReaderHelper::addDataFromBinaryCache(char const*, cocos2d::extension::_DataInfo*) in CCDataReaderHelper.o
      cocos2d::extension::CCComRender::serialize(void*) in CCComRender.o
      cocos2d::extension::GUIReader::widgetFromBinaryFile(char const*) in GUIReader.o
      cocos2d::extension::SceneReader::createNodeWithSceneFile(char const*, cocos2d::extension::AttachComponentType) in SceneReader.o
  "cocos2d::extension::CocoLoader::CocoLoader()", referenced from:
      cocos2d::extension::CCDataReaderHelper::addDataFromBinaryCache(char const*, cocos2d::extension::_DataInfo*) in CCDataReaderHelper.o
      cocos2d::extension::CCComRender::serialize(void*) in CCComRender.o
      cocos2d::extension::GUIReader::widgetFromBinaryFile(char const*) in GUIReader.o
      cocos2d::extension::SceneReader::createNodeWithSceneFile(char const*, cocos2d::extension::AttachComponentType) in SceneReader.o
  "cocos2d::extension::CocoLoader::~CocoLoader()", referenced from:
      cocos2d::extension::CCDataReaderHelper::addDataFromBinaryCache(char const*, cocos2d::extension::_DataInfo*) in CCDataReaderHelper.o
      cocos2d::extension::CCComRender::serialize(void*) in CCComRender.o
      cocos2d::extension::GUIReader::widgetFromBinaryFile(char const*) in GUIReader.o
      cocos2d::extension::SceneReader::createNodeWithSceneFile(char const*, cocos2d::extension::AttachComponentType) in SceneReader.o
  "cocos2d::extension::LabelReader::createInstance()", referenced from:
      cocos2d::extension::GUIReader::GUIReader() in GUIReader.o
  "cocos2d::extension::ButtonReader::createInstance()", referenced from:
      cocos2d::extension::GUIReader::GUIReader() in GUIReader.o
  "cocos2d::extension::LayoutReader::createInstance()", referenced from:
      cocos2d::extension::GUIReader::GUIReader() in GUIReader.o
  "cocos2d::extension::SliderReader::createInstance()", referenced from:
      cocos2d::extension::GUIReader::GUIReader() in GUIReader.o
  "cocos2d::extension::stExpCocoNode::GetChildNum()", referenced from:

我试图在有效的架构中删除i386,但它不起作用 我不知道如何解决它。请帮忙

2 个答案:

答案 0 :(得分:1)

如果您的部署目标是7,则将其更改为6

答案 1 :(得分:0)

我通过查看项目的目标属性修复了这个问题,在一般标签中有一个名为"链接框架和库"我在这里添加了我的项目使用的所有库以及它,另外我在第34节中选择了匹配-o类型"在项目属性链接部分选项"静态库"也适用于"动态库"。