2 u014228766 u014228766 于 2014.08.22 23:50 提问

xcode打包时候出现2个错误,网上各种方法都无法解决

`Ld /Users/Arcia_J/Library/Developer/Xcode/DerivedData/Cube-cxuuufrilllthcekkemlsdiswdom/Build/Intermediates/ArchiveIntermediates/Cube/IntermediateBuildFilesPath/UninstalledProducts/Cube normal x86_64
cd /Users/Arcia_J/Desktop/Cube
export MACOSX_DEPLOYMENT_TARGET=10.8
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -L/Users/Arcia_J/Library/Developer/Xcode/DerivedData/Cube-cxuuufrilllthcekkemlsdiswdom/Build/Intermediates/ArchiveIntermediates/Cube/BuildProductsPath/Release -F/Users/Arcia_J/Library/Developer/Xcode/DerivedData/Cube-cxuuufrilllthcekkemlsdiswdom/Build/Intermediates/ArchiveIntermediates/Cube/BuildProductsPath/Release -filelist /Users/Arcia_J/Library/Developer/Xcode/DerivedData/Cube-cxuuufrilllthcekkemlsdiswdom/Build/Intermediates/ArchiveIntermediates/Cube/IntermediateBuildFilesPath/Cube.build/Release/Cube.build/Objects-normal/x86_64/Cube.LinkFileList -mmacosx-version-min=10.8 -stdlib=libc++ -framework GLUT -framework OpenGL -Xlinker -dependency_info -Xlinker /Users/Arcia_J/Library/Developer/Xcode/DerivedData/Cube-cxuuufrilllthcekkemlsdiswdom/Build/Intermediates/ArchiveIntermediates/Cube/IntermediateBuildFilesPath/Cube.build/Release/Cube.build/Objects-normal/x86_64/Cube_dependency_info.dat -o /Users/Arcia_J/Library/Developer/Xcode/DerivedData/Cube-cxuuufrilllthcekkemlsdiswdom/Build/Intermediates/ArchiveIntermediates/Cube/IntermediateBuildFilesPath/UninstalledProducts/Cube

Undefined symbols for architecture x86_64:
"GlRectangle::selfSetVertex(GlVertex, GlVertex, GlVertex, GlVertex)", referenced from:
GlSurface::GlSurface(GlVertex, GlVertex, GlVertex, GlVertex) in GlSurface.o
GlSurface::GlSurface(GlVertex*) in GlSurface.o
GlSquare::setVertex(GlVertex*) in GlSquare.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

**一个是Undefined symbols for architecture x86_64,另一个是linker command failed with exit code 1 (use -v to see invocation),用了网上好多方法都无法解决,怎么办?

1个回答

u013958587
u013958587   2015.01.30 22:32

我也遇到了这个问题请问你解决了么

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!