zbar sdk查看Xcode 5中的第三方库错误

时间:2013-11-07 06:18:08

标签: iphone objective-c ios7 xcode5 zbar-sdk

我在x代码5中使用z bar SDK,当我归档其获取以下错误时

Undefined symbols for architecture armv7:
  "_CMSampleBufferGetImageBuffer", referenced from:
      -[ZBarCaptureReader captureOutput:didOutputSampleBuffer:fromConnection:] in libzbar.a(ZBarCaptureReader.o)
  "_CMSampleBufferIsValid", referenced from:
      -[ZBarCaptureReader captureOutput:didOutputSampleBuffer:fromConnection:] in libzbar.a(ZBarCaptureReader.o)
  "_CMSampleBufferDataIsReady", referenced from:
      -[ZBarCaptureReader captureOutput:didOutputSampleBuffer:fromConnection:] in libzbar.a(ZBarCaptureReader.o)
  "_CMSampleBufferGetNumSamples", referenced from:
      -[ZBarCaptureReader captureOutput:didOutputSampleBuffer:fromConnection:] in libzbar.a(ZBarCaptureReader.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

3 个答案:

答案 0 :(得分:4)

似乎你错过了其中一个框架 - Core Media

检查ZBar sdk的以下集成链接。
http://zbar.sourceforge.net/iphone/sdkdoc/install.html#integration

答案 1 :(得分:3)

删除 armv7s arm64架构仅使用 armv7 并解决您的问题。

项目 - >构建设置 - >架构 - >删除armv7s arm64

答案 2 :(得分:0)

导入标头并且不链接正确的库将导致该错误。检查您是否导入了正确的库。可以在这里找到更完整的答案

Undefined symbols for architecture armv7