“_OBJC_CLASS _ $ _ CAEAGLLayer”,引自:DBSignatureView.o中的objc-class-ref“未解析

时间:2013-04-05 11:20:50

标签: ios objective-c xcode ipad

我有一个应用程序,在其中一个模块中,它将导入两个库。 1)OpenGLES.framework 2)QuartzCore.framework。

用于绘图。但我有一个这个独立的绘图应用程序,工作正常。当我将它添加到我的应用程序时,这会导致“构建失败”。

我已经浏览了许多纠正的链接,例如http://stackoverflow.com/questions/7953168/symbols-not-found-for-architecture-armv6/10415850#10415850

http://stackoverflow.com/questions/6251111/classlayerclass-wont-work

甚至删除了库,我再次添加了这些链接中所述的配置。但我仍然遇到同样的错误。

这是我的错误页面。

Ld /Users/kumaralakshmanna/Library/Developer/Xcode/DerivedData/Checking_del-bseuzbpwlbzpxvdzdamarjieapuz/Build/Products/Debug-iphonesimulator/Checking_del.app/Checking_del normal i386
    cd /Users/kumaralakshmanna/Documents/IOS_Worksapace/Checking_del
    setenv IPHONEOS_DEPLOYMENT_TARGET 6.1
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -L/Users/kumaralakshmanna/Library/Developer/Xcode/DerivedData/Checking_del-bseuzbpwlbzpxvdzdamarjieapuz/Build/Products/Debug-iphonesimulator -F/Users/kumaralakshmanna/Library/Developer/Xcode/DerivedData/Checking_del-bseuzbpwlbzpxvdzdamarjieapuz/Build/Products/Debug-iphonesimulator -F/Users/kumaralakshmanna/Documents/IOS_Worksapace/Checking_del -filelist /Users/kumaralakshmanna/Library/Developer/Xcode/DerivedData/Checking_del-bseuzbpwlbzpxvdzdamarjieapuz/Build/Intermediates/Checking_del.build/Debug-iphonesimulator/Checking_del.build/Objects-normal/i386/Checking_del.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.1 -framework UIKit -framework Foundation -framework CoreGraphics -framework OpenGLES -framework QuartzCore -o /Users/kumaralakshmanna/Library/Developer/Xcode/DerivedData/Checking_del-bseuzbpwlbzpxvdzdamarjieapuz/Build/Products/Debug-iphonesimulator/Checking_del.app/Checking_del

ld: warning: ignoring file /Users/kumaralakshmanna/Documents/IOS_Worksapace/Checking_del/OpenGLES.framework/OpenGLES, missing required architecture i386 in file /Users/kumaralakshmanna/Documents/IOS_Worksapace/Checking_del/OpenGLES.framework/OpenGLES (2 slices)
ld: warning: ignoring file /Users/kumaralakshmanna/Documents/IOS_Worksapace/Checking_del/QuartzCore.framework/QuartzCore, missing required architecture i386 in file /Users/kumaralakshmanna/Documents/IOS_Worksapace/Checking_del/QuartzCore.framework/QuartzCore (2 slices)
Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_CAEAGLLayer", referenced from:
      objc-class-ref in DBSignatureView.o
  "_OBJC_CLASS_$_EAGLContext", referenced from:
      objc-class-ref in DBSignatureView.o
  "_glBindFramebufferOES", referenced from:
      -[DBSignatureView createFramebuffer] in DBSignatureView.o
      -[DBSignatureView erase] in DBSignatureView.o
      -[DBSignatureView renderLineFromPoint:toPoint:] in DBSignatureView.o
  "_glBindRenderbufferOES", referenced from:
      -[DBSignatureView createFramebuffer] in DBSignatureView.o
      -[DBSignatureView erase] in DBSignatureView.o
      -[DBSignatureView renderLineFromPoint:toPoint:] in DBSignatureView.o
  "_glBindTexture", referenced from:
      -[DBSignatureView commonInit] in DBSignatureView.o
  "_glBlendFunc", referenced from:
      -[DBSignatureView commonInit] in DBSignatureView.o
  "_glCheckFramebufferStatusOES", referenced from:
      -[DBSignatureView createFramebuffer] in DBSignatureView.o
  "_glClear", referenced from:
      -[DBSignatureView erase] in DBSignatureView.o
  "_glClearColor", referenced from:
      -[DBSignatureView erase] in DBSignatureView.o
  "_glColor4f", referenced from:
      -[DBSignatureView setBrushColorWithRed:green:blue:] in DBSignatureView.o
  "_glDeleteFramebuffersOES", referenced from:
      -[DBSignatureView destroyFramebuffer] in DBSignatureView.o
  "_glDeleteRenderbuffersOES", referenced from:
      -[DBSignatureView destroyFramebuffer] in DBSignatureView.o
  "_glDeleteTextures", referenced from:
      -[DBSignatureView dealloc] in DBSignatureView.o
  "_glDisable", referenced from:
      -[DBSignatureView commonInit] in DBSignatureView.o
  "_glDrawArrays", referenced from:
      -[DBSignatureView renderLineFromPoint:toPoint:] in DBSignatureView.o
  "_glEnable", referenced from:
      -[DBSignatureView commonInit] in DBSignatureView.o
  "_glEnableClientState", referenced from:
      -[DBSignatureView commonInit] in DBSignatureView.o
  "_glFramebufferRenderbufferOES", referenced from:
      -[DBSignatureView createFramebuffer] in DBSignatureView.o
  "_glGenFramebuffersOES", referenced from:
      -[DBSignatureView createFramebuffer] in DBSignatureView.o
  "_glGenRenderbuffersOES", referenced from:
      -[DBSignatureView createFramebuffer] in DBSignatureView.o
  "_glGenTextures", referenced from:
      -[DBSignatureView commonInit] in DBSignatureView.o
  "_glGetRenderbufferParameterivOES", referenced from:
      -[DBSignatureView createFramebuffer] in DBSignatureView.o
  "_glMatrixMode", referenced from:
      -[DBSignatureView commonInit] in DBSignatureView.o
  "_glOrthof", referenced from:
      -[DBSignatureView commonInit] in DBSignatureView.o
  "_glPointSize", referenced from:
      -[DBSignatureView commonInit] in DBSignatureView.o
  "_glReadPixels", referenced from:
      -[DBSignatureView upsideDownImageRepresenation] in DBSignatureView.o

库的兼容性有什么问题吗?需要做好准备

0 个答案:

没有答案