私はCocos2dとXcode(ゲーム開発とMacのほか、ウィンドウとEclipseのユーザーでした)の新機能です。私はprogrammer guideにcoco2dxのホームページから取り組んでいます。私はgitをクローンしてコードを実行しようとしますが、私はlibcocos2d iOS.aでコンパイルエラーに直面しています。ライブラリパス(libcocos2d)と "cocos2d.h not found"エラーの原因となるヘッダファイルを設定しました。しかし、今私はリンカのエラーに問題があります。私はアーキテクチャのエラーをビルドするが、物品は見つからないことを知りました。私の現在のビルドアーキテクチャのビルド設定は、yesをデバッグする、noをリリースする、アーキテクチャが標準の64bit x86_64に設定されており、有効なアーキテクチャは-armv7、armv7s、i386、x86_64、arm64です。プロジェクト設定で未定義のシンボルによるココス2dxビルドの失敗
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_CMMotionManager", referenced from:
objc-class-ref in libcocos2d iOS.a(CCDevice-ios.o)
"_OBJC_CLASS_$_EAGLContext", referenced from:
objc-class-ref in libcocos2d iOS.a(CCDirectorCaller-ios.o)
"_OBJC_CLASS_$_UIApplication", referenced from:
objc-class-ref in libcocos2d iOS.a(CCApplication-ios.o)
objc-class-ref in libcocos2d iOS.a(CCDirectorCaller-ios.o)
objc-class-ref in libcocos2d iOS.a(CCDevice-ios.o)
"_OBJC_CLASS_$_UIColor", referenced from:
objc-class-ref in libcocos2d iOS.a(CCDevice-ios.o)
"_OBJC_CLASS_$_UIDevice", referenced from:
objc-class-ref in libcocos2d iOS.a(CCApplication-ios.o)
objc-class-ref in libcocos2d iOS.a(CCDevice-ios.o)
"_OBJC_CLASS_$_UIFont", referenced from:
objc-class-ref in libcocos2d iOS.a(CCDevice-ios.o)
"_OBJC_CLASS_$_UIImage", referenced from:
objc-class-ref in libcocos2d iOS.a(CCImage-ios.o)
"_OBJC_CLASS_$_UIScreen", referenced from:
objc-class-ref in libcocos2d iOS.a(CCDevice-ios.o)
"_UIApplicationDidBecomeActiveNotification", referenced from:
-[CCDirectorCaller init] in libcocos2d iOS.a(CCDirectorCaller-ios.o)
"_UIApplicationWillResignActiveNotification", referenced from:
-[CCDirectorCaller init] in libcocos2d iOS.a(CCDirectorCaller-ios.o)
"_UIGraphicsPopContext", referenced from:
cocos2d::Device::getTextureDataForText(char const*, cocos2d::FontDefinition const&, cocos2d::Device::TextAlign, int&, int&, bool&) in libcocos2d iOS.a(CCDevice-ios.o)
"_UIGraphicsPushContext", referenced from:
cocos2d::Device::getTextureDataForText(char const*, cocos2d::FontDefinition const&, cocos2d::Device::TextAlign, int&, int&, bool&) in libcocos2d iOS.a(CCDevice-ios.o)
"_UIImageJPEGRepresentation", referenced from:
cocos2d::Image::saveToFile(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in libcocos2d iOS.a(CCImage-ios.o)
"_UIImagePNGRepresentation", referenced from:
cocos2d::Image::saveToFile(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) in libcocos2d iOS.a(CCImage-ios.o)
"AppDelegate::AppDelegate()", referenced from:
_main in main.o
"AppDelegate::~AppDelegate()", referenced from:
_main in main.o
"_glBindVertexArrayOES", referenced from:
cocos2d::GL::bindVAO(unsigned int) in libcocos2d iOS.a(ccGLStateCache.o)
"_glDeleteVertexArraysOES", referenced from:
cocos2d::Renderer::~Renderer() in libcocos2d iOS.a(CCRenderer.o)
cocos2d::MeshCommand::releaseVAO() in libcocos2d iOS.a(CCMeshCommand.o)
cocos2d::TextureAtlas::~TextureAtlas() in libcocos2d iOS.a(CCTextureAtlas.o)
cocos2d::CameraBackgroundSkyBoxBrush::~CameraBackgroundSkyBoxBrush() in libcocos2d iOS.a(CCCameraBackgroundBrush.o)
cocos2d::CameraBackgroundSkyBoxBrush::initBuffer() in libcocos2d iOS.a(CCCameraBackgroundBrush.o)
cocos2d::Physics3DDebugDrawer::~Physics3DDebugDrawer() in libcocos2d iOS.a(CCPhysics3DDebugDrawer.o)
cocos2d::DrawNode::~DrawNode() in libcocos2d iOS.a(CCDrawNode.o)
...
"_glGenVertexArraysOES", referenced from:
cocos2d::Renderer::setupVBOAndVAO() in libcocos2d iOS.a(CCRenderer.o)
cocos2d::MeshCommand::buildVAO() in libcocos2d iOS.a(CCMeshCommand.o)
cocos2d::TextureAtlas::setupVBOandVAO() in libcocos2d iOS.a(CCTextureAtlas.o)
cocos2d::CameraBackgroundSkyBoxBrush::initBuffer() in libcocos2d iOS.a(CCCameraBackgroundBrush.o)
cocos2d::Physics3DDebugDrawer::init() in libcocos2d iOS.a(CCPhysics3DDebugDrawer.o)
cocos2d::DrawNode::init() in libcocos2d iOS.a(CCDrawNode.o)
cocos2d::VertexAttribBinding::init(cocos2d::MeshIndexData*, cocos2d::GLProgramState*) in libcocos2d iOS.a(CCVertexAttribBinding.o)
...
"_glMapBufferOES", referenced from:
cocos2d::Renderer::drawBatchedTriangles() in libcocos2d iOS.a(CCRenderer.o)
cocos2d::TextureAtlas::drawNumberOfQuads(long, long) in libcocos2d iOS.a(CCTextureAtlas.o)
"_glUnmapBufferOES", referenced from:
cocos2d::Renderer::drawBatchedTriangles() in libcocos2d iOS.a(CCRenderer.o)
cocos2d::TextureAtlas::drawNumberOfQuads(long, long) in libcocos2d iOS.a(CCTextureAtlas.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)