2015-10-14 109 views
1

我已經去了一箇舊的項目,需要爲它使用的掃描儀更新SDK。新的SDK已準備就緒,所以應用程序需要更新。 的SDK是通過拖放到項目安裝,但之後,建設時,我得到了以下錯誤:XCode - 未定義的符號架構armv7 arm64

注:我得到了一個錯誤指的是arm64但這個目前說armv7因爲我擺弄。

Undefined symbols for architecture armv7:
"_AVMetadataObjectTypeUPCECode", referenced from: -[SoftScanController initWithDeviceObject:] in libScanApi.a(SoftScanController.o) "_AVMetadataObjectTypeEAN8Code", referenced from: -[SoftScanController initWithDeviceObject:] in libScanApi.a(SoftScanController.o)
"_AVMetadataObjectTypeCode93Code", referenced from: -[SoftScanController initWithDeviceObject:] in libScanApi.a(SoftScanController.o) "_AVMediaTypeVideo", referenced from: -[SoftScan initWithDelegate:] in libScanApi.a(SoftScanController.o) "_AVMetadataObjectTypeAztecCode", referenced from: -[SoftScanController initWithDeviceObject:] in libScanApi.a(SoftScanController.o) "_AVMetadataObjectTypeEAN13Code", referenced from: -[SoftScanController initWithDeviceObject:] in libScanApi.a(SoftScanController.o)
"_AVLayerVideoGravityResizeAspectFill", referenced from: -[SoftScan start:] in libScanApi.a(SoftScanController.o) "_OBJC_CLASS_$_AVCaptureVideoPreviewLayer", referenced from: objc-class-ref in libScanApi.a(SoftScanController.o) "_AVMetadataObjectTypePDF417Code", referenced from: -[SoftScanController initWithDeviceObject:] in libScanApi.a(SoftScanController.o) "_OBJC_CLASS_$_AVCaptureSession", referenced from: objc-class-ref in libScanApi.a(SoftScanController.o) "_AVMetadataObjectTypeCode39Code", referenced from: -[SoftScanController initWithDeviceObject:] in libScanApi.a(SoftScanController.o)
"_AVMetadataObjectTypeCode128Code", referenced from: -[SoftScanController initWithDeviceObject:] in libScanApi.a(SoftScanController.o) "_AVMetadataObjectTypeQRCode", referenced from: -[SoftScanController initWithDeviceObject:] in libScanApi.a(SoftScanController.o)
"_OBJC_CLASS_$_AVCaptureMetadataOutput", referenced from: objc-class-ref in libScanApi.a(SoftScanController.o) "_AVMetadataObjectTypeCode39Mod43Code", referenced from: -[SoftScanController initWithDeviceObject:] in libScanApi.a(SoftScanController.o)
"_OBJC_CLASS_$_AVCaptureDeviceInput", referenced from: objc-class-ref in libScanApi.a(SoftScanController.o) "_OBJC_CLASS_$_AVCaptureDevice", referenced from: objc-class-ref in libScanApi.a(SoftScanController.o) ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)

所有出現的錯誤都是指掃描儀的SDK。 我的當前版本的設置爲:

架構Standard architecture

Base SDK: latest(9.0)

Build Active architecture only : no

valid architectures: armv7 armv7s arm64

任何援助將受到好評。

回答

3

看起來您並未將您的項目與AVFoundation框架鏈接。

User Guide

+1

太簡單了。謝謝。 – Steve

相關問題