简体   繁体   English

XCode - 架构armv7 arm64的未定义符号

[英]XCode - undefined symbols for architecture armv7 arm64

I've gone to an older project that needs to have the SDK updated for the scanner that it uses. 我去了一个较旧的项目,需要为其使用的扫描仪更新SDK。 The new SDK is 64bit ready and so the app needs updating. 新的SDK已准备好64位,因此应用程序需要更新。 The SDK is installed by dragging and dropping into the project but after that I get the following error when building: SDK是通过拖放到项目中安装的,但之后我在构建时遇到以下错误:

Note: I was getting an error referring to arm64 but this one currently says armv7 because I fiddled. 注意:我收到一个错误,指的是arm64但是这个当前说的是armv7因为我摆弄了。

Undefined symbols for architecture armv7: 架构armv7的未定义符号:
"_AVMetadataObjectTypeUPCECode", referenced from: -[SoftScanController initWithDeviceObject:] in libScanApi.a(SoftScanController.o) "_AVMetadataObjectTypeEAN8Code", referenced from: -[SoftScanController initWithDeviceObject:] in libScanApi.a(SoftScanController.o) “_AVMetadataObjectTypeUPCECode”,引用自: - [SoftScanController initWithDeviceObject:] in libScanApi.a(SoftScanController.o)“_ AVMetadataObjectTypeEAN8Code”,引自: - [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) “_AVMetadataObjectTypeCode93Code”,引自: - [SoftScanController中的[SoftScanController initWithDeviceObject:](SoftScanController.o)“_ AVMediaTypeVideo”,引自: - [SoftScan initWithDelegate:]在libScanApi.a(SoftScanController.o)中的“_AVMetadataObjectTypeAztecCode”,引用自: - libScanApi.a中的[SoftScanController initWithDeviceObject:](SoftScanController.o)“_ AVMetadataObjectTypeEAN13Code”,引自: - [libScanApi.a中的[SoftScanController initWithDeviceObject:](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) “_AVLayerVideoGravityResizeAspectFill”,引自: - [SoftScan start:]在libScanApi.a(SoftScanController.o)“_ OBJC_CLASS _ $ _ AVCaptureVideoPreviewLayer”中,引用自:libScanApi.a中的objc-class-ref(SoftScanController.o)“_AVMetadataObjectTypePDF417Code”,引用来自:[libScanApi.a中的[SoftScanController initWithDeviceObject:](SoftScanController.o)“_ OBJC_CLASS _ $ _ AVCaptureSession”,引自:libScanApi.a中的objc-class-ref(SoftScanController.o)“_ AVMetadataObjectTypeCode39Code”,引用自: - [SoftScanController] libScanApi.a中的initWithDeviceObject:](SoftScanController.o)
"_AVMetadataObjectTypeCode128Code", referenced from: -[SoftScanController initWithDeviceObject:] in libScanApi.a(SoftScanController.o) "_AVMetadataObjectTypeQRCode", referenced from: -[SoftScanController initWithDeviceObject:] in libScanApi.a(SoftScanController.o) “_AVMetadataObjectTypeCode128Code”,引用自: - [libScanApi.a中的[SoftScanController initWithDeviceObject:](SoftScanController.o)“_ AVMetadataObjectTypeQRCode”,引用自: - [libScanApi.a中的[SoftScanController initWithDeviceObject:](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 _ $ _ AVCaptureMetadataOutput”,引用自:libScanApi.a中的objc-class-ref(SoftScanController.o)“_ AVMetadataObjectTypeCode39Mod43Code”,引用自: - [libScanApi.a中的[SoftScanController initWithDeviceObject:](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) “_OBJC_CLASS _ $ _ AVCaptureDeviceInput”,引用自:libScanApi.a中的objc-class-ref(SoftScanController.o)“_ OBJC_CLASS _ $ _ AVCaptureDevice”,引用自:libScanApi.a中的objc-class-ref(SoftScanController.o)ld:symbol( s)找不到架构armv7 clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)

All of the errors that come up refer to the SDK for the scanner. 出现的所有错误都是指扫描仪的SDK。 My current build settings are: 我当前的构建设置是:

Architectures : Standard architecture 架构Standard architecture

Base SDK: latest(9.0)

Build Active architecture only : no

valid architectures: armv7 armv7s arm64

Any assistance would be well received. 任何援助都会受到欢迎。

It looks like you are not linking your project with the AVFoundation framework. 看起来您没有将项目与AVFoundation框架链接起来。

User Guide . 用户指南

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM