Open kyfxbl opened 9 years ago
the error message is:
Undefined symbols for architecture arm64: "_OBJCCLASS$_EAGLContext", referenced from: objc-class-ref in PPSSignatureView.o "_glDisable", referenced from: -[PPSSignatureView setupGL] in PPSSignatureView.o "_glGenVertexArraysOES", referenced from: -[PPSSignatureView setupGL] in PPSSignatureView.o "_glGenBuffers", referenced from: -[PPSSignatureView setupGL] in PPSSignatureView.o "_glBufferData", referenced from: -[PPSSignatureView setupGL] in PPSSignatureView.o "_glVertexAttribPointer", referenced from: -[PPSSignatureView bindShaderAttributes] in PPSSignatureView.o "_glDeleteVertexArraysOES", referenced from: -[PPSSignatureView tearDownGL] in PPSSignatureView.o "_glMapBufferOES", referenced from: _addVertex in PPSSignatureView.o "_glDrawArrays", referenced from: -[PPSSignatureView drawRect:] in PPSSignatureView.o "_glBindBuffer", referenced from: -[PPSSignatureView tap:] in PPSSignatureView.o -[PPSSignatureView pan:] in PPSSignatureView.o -[PPSSignatureView setupGL] in PPSSignatureView.o "_glClearColor", referenced from: -[PPSSignatureView drawRect:] in PPSSignatureView.o "_glDeleteBuffers", referenced from: -[PPSSignatureView tearDownGL] in PPSSignatureView.o "_glClear", referenced from: -[PPSSignatureView drawRect:] in PPSSignatureView.o "_glUnmapBufferOES", referenced from: _addVertex in PPSSignatureView.o "_glBindVertexArrayOES", referenced from: -[PPSSignatureView drawRect:] in PPSSignatureView.o -[PPSSignatureView setupGL] in PPSSignatureView.o "_glEnableVertexAttribArray", referenced from: -[PPSSignatureView bindShaderAttributes] in PPSSignatureView.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Looks like you need to link GLKit. If you're using CocoaPods, this should happen automatically.
the error message is:
Undefined symbols for architecture arm64: "_OBJCCLASS$_EAGLContext", referenced from: objc-class-ref in PPSSignatureView.o "_glDisable", referenced from: -[PPSSignatureView setupGL] in PPSSignatureView.o "_glGenVertexArraysOES", referenced from: -[PPSSignatureView setupGL] in PPSSignatureView.o "_glGenBuffers", referenced from: -[PPSSignatureView setupGL] in PPSSignatureView.o "_glBufferData", referenced from: -[PPSSignatureView setupGL] in PPSSignatureView.o "_glVertexAttribPointer", referenced from: -[PPSSignatureView bindShaderAttributes] in PPSSignatureView.o "_glDeleteVertexArraysOES", referenced from: -[PPSSignatureView tearDownGL] in PPSSignatureView.o "_glMapBufferOES", referenced from: _addVertex in PPSSignatureView.o "_glDrawArrays", referenced from: -[PPSSignatureView drawRect:] in PPSSignatureView.o "_glBindBuffer", referenced from: -[PPSSignatureView tap:] in PPSSignatureView.o -[PPSSignatureView pan:] in PPSSignatureView.o -[PPSSignatureView setupGL] in PPSSignatureView.o "_glClearColor", referenced from: -[PPSSignatureView drawRect:] in PPSSignatureView.o "_glDeleteBuffers", referenced from: -[PPSSignatureView tearDownGL] in PPSSignatureView.o "_glClear", referenced from: -[PPSSignatureView drawRect:] in PPSSignatureView.o "_glUnmapBufferOES", referenced from: _addVertex in PPSSignatureView.o "_glBindVertexArrayOES", referenced from: -[PPSSignatureView drawRect:] in PPSSignatureView.o -[PPSSignatureView setupGL] in PPSSignatureView.o "_glEnableVertexAttribArray", referenced from: -[PPSSignatureView bindShaderAttributes] in PPSSignatureView.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)