xcode5.1编译cocos2d-x-2.1.4报错···求解啊···

Undefined symbols for architecture i386:
"OBJC_CLASS_EAGLView", referenced from: objc-class-ref in CCEditBoxImplIOS.o objc-class-ref in AppController.o "GetAppStoragePath()", referenced from: AppDelegate::applicationDidFinishLaunching() in AppDelegate.o CDumpCenter::getDumpFileList(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >&) in DumpCenter.o "cc_assert_script_compatible(char const*)", referenced from: cocos2d::extension::CCBatchNode::draw() in CCBatchNode.o cocos2d::extension::CCControlSlider::initWithSprites(cocos2d::CCSprite*, cocos2d::CCSprite*, cocos2d::CCSprite*) in CCControlSlider.o cocos2d::extension::CCBone::setBoneData(cocos2d::extension::CCBoneData*) in CCBone.o cocos2d::extension::CCBone::addChildBone(cocos2d::extension::CCBone*) in CCBone.o cocos2d::extension::CCControlStepper::initWithMinusSpriteAndPlusSprite(cocos2d::CCSprite*, cocos2d::CCSprite*) in CCControlStepper.o cocos2d::extension::CCControlStepper::setMinimumValue(double) in CCControlStepper.o cocos2d::extension::CCControlStepper::setMaximumValue(double) in CCControlStepper.o ... "CFontSpriteCache::~CFontSpriteCache()", referenced from: cocos2d::CCDisplayLinkDirector::~CCDisplayLinkDirector() in GameManager.o std::__1::auto_ptr<CFontSpriteCache>::~auto_ptr() in GameManager.o "cocos2d::CCCallFunc::create(cocos2d::CCObject*, void (cocos2d::CCObject::*)())", referenced from: RotateGuidImage::onTouchEnded(cocos2d::CCPoint const&) in RotateGuidImage.o RotateGuidImage::ImageRotationBy(float) in RotateGuidImage.o CChatUIBtnGroupLayer::_shrinkChannelBtn() in ChatUIBtnGroupLayer.o Skill::showCast() in Skill.o MainSmallShortCutUI::RunActionRotationTo(float) in MainMenuShortCutPanelUI.o MainSmallShortCutUI::RunActionRotationBy(float) in MainMenuShortCutPanelUI.o CRole::goToHell() in Role.o ... "cocos2d::CCDirector::getWinSize()", referenced from: FDPixelUIImageView::onTouchEnded(cocos2d::CCPoint const&) in FDPixelUIImageView.o BattleModeSpreadWidget::OpenBattlModeSpreadWidget() in BattleModeWidget.o CGameDragLayer::Instance() in UIIcon.o cocos2d::extension::CCBReader::init() in CCBReader.o cocos2d::extension::CCBReader::readNodeGraphFromFile(char const*) in CCBReader.o cocos2d::extension::CCBReader::readNodeGraphFromFile(char const*, cocos2d::CCObject*) in CCBReader.o cocos2d::extension::CCBReader::createSceneWithNodeGraphFromFile(char const*) in CCBReader.o ... "cocos2d::CCDirector::getDeltaTime()", referenced from: vtable for cocos2d::CCDisplayLinkDirector in GameManager.o "cocos2d::CCDirector::getScheduler()", referenced from: vtable for cocos2d::CCDisplayLinkDirector in GameManager.o "cocos2d::CCDirector::replaceScene(cocos2d::CCScene*)", referenced from: CRootScene::Instance() in CRootScene.o CGameManager::prepareReplaceScene() in GameManager.o "cocos2d::CCDirector::runWithScene(cocos2d::CCScene*)", referenced from: CGameManager::setCurrState(int) in GameManager.o "cocos2d::CCDirector::setScheduler(cocos2d::CCScheduler*)", referenced from: vtable for cocos2d::CCDisplayLinkDirector in GameManager.o "cocos2d::CCDirector::setOpenGLView(cocos2d::CCEGLView*)", referenced from: AppDelegate::applicationDidFinishLaunching() in AppDelegate.o "cocos2d::CCDirector::getVisibleSize()", referenced from: CTileMap::GetViewRect(cocos2d::CCRect&) in TileMap.o CTileMap::GetMaxViewX() in TileMap.o CTileMap::GetMaxViewY() in TileMap.o CTileMap::SetView(int, int) in TileMap.o CTileMap::MoveMap(int, int) in TileMap.o CTileMap::IsCellInView(int, int) in TileMap.o CTileLayer::getTileCountInView(int&, int&) in TileLayer.o ... "cocos2d::CCDirector::sharedDirector()", referenced from: FDPixelUIImageView::onTouchEnded(cocos2d::CCPoint const&) in FDPixelUIImageView.o BattleModeSpreadWidget::OpenBattlModeSpreadWidget() in BattleModeWidget.o MineralUI::~MineralUI() in MineralUI.o MineralUI::onInit() in MineralUI.o MineralUI::mineralResult(pk::GS2C_MineRet*) in MineralUI.o MineralUI::MineralOnceCircle(float) in MineralUI.o MineralUI::GetItemStep(float) in MineralUI.o ... "cocos2d::CCDirector::getAccelerometer()", referenced from: vtable for cocos2d::CCDisplayLinkDirector in GameManager.o "cocos2d::CCDirector::getActionManager()", referenced from: vtable for cocos2d::CCDisplayLinkDirector in GameManager.o "cocos2d::CCDirector::getVisibleOrigin()", referenced from: CTileMap::GetViewPoint(cocos2d::CCPoint&) in TileMap.o CTileMap::GetViewRect(cocos2d::CCRect&) in TileMap.o CTileMap::SetView(int, int) in TileMap.o CTileMap::IsCellInView(int, int) in TileMap.o "cocos2d::CCDirector::setAccelerometer(cocos2d::CCAccelerometer*)", referenced from: vtable for cocos2d::CCDisplayLinkDirector in GameManager.o "cocos2d::CCDirector::setActionManager(cocos2d::CCActionManager*)", referenced from: vtable for cocos2d::CCDisplayLinkDirector in GameManager.o "cocos2d::CCDirector::getTouchDispatcher()", referenced from: vtable for cocos2d::CCDisplayLinkDirector in GameManager.o "cocos2d::CCDirector::setTouchDispatcher(cocos2d::CCTouchDispatcher*)", referenced from: vtable for cocos2d::CCDisplayLinkDirector in GameManager.o "cocos2d::CCDirector::getKeypadDispatcher()", referenced from: vtable for cocos2d::CCDisplayLinkDirector in GameManager.o "cocos2d::CCDirector::setKeypadDispatcher(cocos2d::CCKeypadDispatcher*)", referenced from: vtable for cocos2d::CCDisplayLinkDirector in GameManager.o "cocos2d::CCDirector::getContentScaleFactor()", referenced from: cocos2d::extension::CCShaderNode::translateFormOtherNode(cocos2d::CCAffineTransform&) in CCShaderNode.o cocos2d::extension::CCShaderNode::setPosition(cocos2d::CCPoint const&) in CCShaderNode.o "cocos2d::CCDirector::end()", referenced from: std::__1::__function::__func<CGameManager::exitSdkCallBack()::_0, std::__1::allocatorCGameManager::exitSdkCallBack()::$_0, void ()>::operator()() in GameManager.o
“cocos2d::CCDirector::init()”, referenced from:
vtable for cocos2d::CCDisplayLinkDirector in GameManager.o
“cocos2d::CCDirector::pause()”, referenced from:
- in AppController.o
“cocos2d::CCDirector::resume()”, referenced from:
- in AppController.o
“cocos2d::CCDirector::~CCDirector()”, referenced from:
cocos2d::CCDisplayLinkDirector::~CCDisplayLinkDirector() in GameManager.o
“cocos2d::CCDrawNode::drawPolygon(cocos2d::CCPoint*, unsigned int, cocos2d::_ccColor4F const&, float, cocos2d::_ccColor4F const&)”, referenced from:
cocos2d::extension::DrawShape(cpShape*, cocos2d::CCDrawNode*) in CCPhysicsDebugNode.o
“cocos2d::CCDrawNode::drawSegment(cocos2d::CCPoint const&, cocos2d::CCPoint const&, float, cocos2d::_ccColor4F const&)”, referenced from:
cocos2d::extension::DrawShape(cpShape*, cocos2d::CCDrawNode*) in CCPhysicsDebugNode.o
cocos2d::extension::DrawConstraint(cpConstraint*, cocos2d::CCDrawNode*) in CCPhysicsDebugNode.o
“cocos2d::CCDrawNode::draw()”, referenced from:
cocos2d::extension::CCPhysicsDebugNode::draw() in CCPhysicsDebugNode.o
“cocos2d::CCDrawNode::init()”, referenced from:
cocos2d::extension::CCPhysicsDebugNode::create(cpSpace*) in CCPhysicsDebugNode.o
vtable for cocos2d::extension::CCPhysicsDebugNode in CCPhysicsDebugNode.o
“cocos2d::CCDrawNode::clear()”, referenced from:
cocos2d::extension::CCPhysicsDebugNode::draw() in CCPhysicsDebugNode.o
“cocos2d::CCDrawNode::drawDot(cocos2d::CCPoint const&, float, cocos2d::_ccColor4F const&)”, referenced from:
cocos2d::extension::DrawShape(cpShape*, cocos2d::CCDrawNode*) in CCPhysicsDebugNode.o
cocos2d::extension::DrawConstraint(cpConstraint*, cocos2d::CCDrawNode*) in CCPhysicsDebugNode.o
“cocos2d::CCDrawNode::CCDrawNode()”, referenced from:
cocos2d::extension::CCPhysicsDebugNode::CCPhysicsDebugNode() in CCPhysicsDebugNode.o
cocos2d::extension::CCPhysicsDebugNode::CCPhysicsDebugNode() in CCPhysicsDebugNode.o
cocos2d::extension::CCPhysicsDebugNode::create(cpSpace*) in CCPhysicsDebugNode.o
“cocos2d::CCDrawNode::~CCDrawNode()”, referenced from:
cocos2d::extension::CCPhysicsDebugNode::~CCPhysicsDebugNode() in CCPhysicsDebugNode.o
cocos2d::extension::CCPhysicsDebugNode::~CCPhysicsDebugNode() in CCPhysicsDebugNode.o
cocos2d::extension::CCPhysicsDebugNode::~CCPhysicsDebugNode() in CCPhysicsDebugNode.o
“cocos2d::CCGridBase::beforeDraw()”, referenced from:
cocos2d::extension::CCBatchNode::visit() in CCBatchNode.o
cocos2d::extension::CCScrollView::visit() in CCScrollView.o
cocos2d::extension::CCArmature::visit() in CCArmature.o
“cocos2d::CCGridBase::afterDraw(cocos2d::CCNode*)”, referenced from:
cocos2d::extension::CCBatchNode::visit() in CCBatchNode.o
cocos2d::extension::CCScrollView::visit() in CCScrollView.o
cocos2d::extension::CCArmature::visit() in CCArmature.o
“cocos2d::CCMenuItem::setTarget(cocos2d::CCObject*, void (cocos2d::CCObject::)(cocos2d::CCObject))”, referenced from:
cocos2d::extension::CCMenuItemLoader::onHandlePropTypeBlock(cocos2d::CCNode*, cocos2d::CCNode*, char const*, cocos2d::extension::BlockData*, cocos2d::extension::CCBReader*) in CCMenuItemLoader.o
“cocos2d::CCNodeRGBA::getOpacity()”, referenced from:
vtable for cocos2d::extension::CCBone in CCBone.o
vtable for cocos2d::extension::GUINodeRGBA in GUINodeRGBA.o
vtable for cocos2d::extension::CCControlSwitchSprite in CCControlSwitch.o
vtable for cocos2d::extension::CCSkeletonAnimation in CCSkeletonAnimation.o
vtable for cocos2d::extension::CCPhysicsSprite in CCPhysicsSprite.o
vtable for UIGridCDCircle in UIIcon.o
vtable for cocos2d::extension::CCArmature in CCArmature.o

总共有201个错误···不知道为什么···求各位大神赐教···

我也是这个问题,求解呀。在苹果5上编译没有问题,知道在5S或6上就出现这个,新手求教。

是否是引用了第三方组件?可能是第三方组件不支持模拟器或者不支持64位编译···

不支持i386,删掉就好了

这个怎么删,新手不太明白。我用的是Cocos2dx2.2.1和Xcode6.0,难道2.2.1不支持5s以上的?

请问解决了嘛?我的是在XCode6.1.1上使用iPhone6模拟器跑Cocos2d-x2.2.3的工程,出现这样的错误,201个错误,我是根据某个坑爹的教程,让我点Perform Changes,导致不能编译了,之前是可以的。求解决办法

点Perform Changes编译会出现100多个“Apple Mach-O Linker Error”的错误。
google查都是要去修改armv7s什么的,都是误导。解决不了问题!
这个cocos2dx的target是被其他projects下的项目和samples下的例子共同引用的,结果就是所有工程都会同样报错!
所以换一个cocos2dx就行了

我也遇到类似的
Undefined symbols for architecture armv7:
“cocos2d::FileUtils::removePathFromPathCache(char const*)”, referenced from:
FileUtilsEx::removeFile(char const*) in FileUtilsEx.o
“cocos2d::Data::getSize() const”, referenced from:
FileUtilsEx::FileMd5(char const*) in FileUtilsEx.o
FileUtilsEx::copyFile(char const*, char const*) in FileUtilsEx.o
“cocos2d::Data::~Data()”, referenced from:
FileUtilsEx::FileMd5(char const*) in FileUtilsEx.o
FileUtilsEx::copyFile(char const*, char const*) in FileUtilsEx.o
“cocos2d::__String::length() const”, referenced from:
CFMessage::writeString(cocos2d::__String*) in CFNetwork.o
“cocos2d::kCCAttributeNameTexCoord”, referenced from:
ColorSprite::innerSetSpriteColor(char const*) in ColorSprite.o
“typeinfo for cocos2d::Sprite”, referenced from:
typeinfo for ColorSprite in ColorSprite.o
“cocos2d::Sprite::setScaleX(float)”, referenced from:
vtable for ColorSprite in ColorSprite.o
“cocos2d::Sprite::setScaleY(float)”, referenced from:
vtable for ColorSprite in ColorSprite.o
“cocos2d::Sprite::setScale(float)”, referenced from:
vtable for ColorSprite in ColorSprite.o
“cocos2d::Sprite::setScale(float, float)”, referenced from:
vtable for ColorSprite in ColorSprite.o
“cocos2d::Sprite::setPosition(cocos2d::Point const&)”, referenced from:
vtable for ColorSprite in ColorSprite.o
“cocos2d::Sprite::setAnchorPoint(cocos2d::Point const&)”, referenced from:
vtable for ColorSprite in ColorSprite.o
“cocos2d::Sprite::setSkewX(float)”, referenced from:
vtable for ColorSprite in ColorSprite.o
“cocos2d::Sprite::removeAllChildrenWithCleanup(bool)”, referenced from:
vtable for ColorSprite in ColorSprite.o
“cocos2d::Sprite::setOpacityModifyRGB(bool)”, referenced from:
vtable for ColorSprite in ColorSprite.o
“cocos2d::Sprite::isOpacityModifyRGB() const”, referenced from:
vtable for ColorSprite in ColorSprite.o
“cocos2d::Sprite::init()”, referenced from:
vtable for ColorSprite in ColorSprite.o
“cocos2d::Sprite::updateColor()”, referenced from:
vtable for ColorSprite in ColorSprite.o
“cocos2d::Sprite::getBatchNode()”, referenced from:
vtable for ColorSprite in ColorSprite.o
“cocos2d::Sprite::setTexture(cocos2d::Texture2D*)”, referenced from:
vtable for ColorSprite in ColorSprite.o
“cocos2d::Sprite::getTexture() const”, referenced from:
vtable for ColorSprite in ColorSprite.o
“cocos2d::Sprite::setTextureRect(cocos2d::Rect const&, bool, cocos2d::Size const&)”, referenced from:
vtable for ColorSprite in ColorSprite.o
“cocos2d::Sprite::setSpriteFrame(cocos2d::SpriteFrame*)”, referenced from:
vtable for ColorSprite in ColorSprite.o
“cocos2d::Sprite::setDisplayFrameWithAnimationName(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, long)”, referenced from:
vtable for ColorSprite in ColorSprite.o
“cocos2d::Sprite::getDescription() const”, referenced from:
vtable for ColorSprite in ColorSprite.o
“cocos2d::Sprite::initWithTexture(cocos2d::Texture2D*)”, referenced from:
vtable for ColorSprite in ColorSprite.o
“cocos2d::__String::createWithData(unsigned char const*, unsigned long)”, referenced from:
CFMessage::readString() in CFNetwork.o
“cocos2d::Sprite::initWithTexture(cocos2d::Texture2D*, cocos2d::Rect const&, bool)”, referenced from:
vtable for ColorSprite in ColorSprite.o
“cocos2d::Sprite::initWithSpriteFrame(cocos2d::SpriteFrame*)”, referenced from:
vtable for ColorSprite in ColorSprite.o
“cocos2d::Sprite::initWithSpriteFrameName(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)”, referenced from:
vtable for ColorSprite in ColorSprite.o
“cocos2d::Sprite::initWithFile(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)”, referenced from:
vtable for ColorSprite in ColorSprite.o
“cocos2d::Sprite::initWithFile(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, cocos2d::Rect const&)”, referenced from:
vtable for ColorSprite in ColorSprite.o

请问怎样解决啊,太奇怪了

终于自己找到原因了,懂得这个原则:缺什么就添加什么,我这个问题解决方法:添加libcocosXXXX.a即可解决!