我参与了一个较旧的项目,该项目需要为其使用的扫描仪更新 SDK。新的 SDK 已支持 64 位,因此应用程序需要更新。
SDK是通过拖放到项目中安装的,但之后在构建时出现以下错误:
注意:我收到一个错误,指的是arm64
但这目前说armv7
因为我拨弄了。
架构armv7的未定义符号:
“_AVMetadataObjectTypeUPCECode”,引用自:
-[SoftScanController initWithDeviceObject:] 在 libScanApi.a(SoftScanController.o) "_AVMetadataObjectTypeEAN8Code",
参考自:
-[SoftScanController initWithDeviceObject:] 在 libScanApi.a(SoftScanController.o)
“_AVMetadataObjectTypeCode93Code”,引用自:
-[SoftScanController initWithDeviceObject:] 在libScanApi.a(SoftScanController.o)“_AVMediaTypeVideo”中,引用
从:
-[SoftScan initWithDelegate:] 在 libScanApi.a(SoftScanController.o)“_AVMetadataObjectTypeAztecCode”中,
参考自:
-[SoftScanController initWithDeviceObject:] 在 libScanApi.a(SoftScanController.o) "_AVMetadataObjectTypeEAN13Code",
参考自:
-[SoftScanController initWithDeviceObject:] 在 libScanApi.a(SoftScanController.o)
“_AVLayerVideoGravityResizeAspectFill”,引用自:
-libScanApi.a(SoftScanController.o) 中的[SoftScan start:]“_OBJC_CLASS_$_AVCaptureVideoPreviewLayer”,引用自:
libScanApi.a(SoftScanController.o)“_AVMetadataObjectTypePDF417Code”中的 objc-class-ref,引用自:
-[SoftScanController initWithDeviceObject:] 在 libScanApi.a(SoftScanController.o) "_OBJC_CLASS_$_AVCaptureSession",
参考自:
libScanApi.a(SoftScanController.o) 中的 objc-class-ref “_AVMetadataObjectTypeCode39Code”,引用自:
-[SoftScanController initWithDeviceObject:] 在 libScanApi.a(SoftScanController.o)
“_AVMetadataObjectTypeCode128Code”,引用自:
-[SoftScanController initWithDeviceObject:] 在 libScanApi.a(SoftScanController.o) "_AVMetadataObjectTypeQRCode",
参考自:
-[SoftScanController initWithDeviceObject:] 在 libScanApi.a(SoftScanController.o)
“_OBJC_CLASS_$_AVCaptureMetadataOutput”,引用自:
libScanApi.a(SoftScanController.o) 中的 objc-class-ref “_AVMetadataObjectTypeCode39Mod43Code”,引用自:
-[SoftScanController initWithDeviceObject:] 在 libScanApi.a(SoftScanController.o)
“_OBJC_CLASS_$_AVCaptureDeviceInput”,引用自:
libScanApi.a(SoftScanController.o) 中的 objc-class-ref “_OBJC_CLASS_$_AVCaptureDevice”,引用自:
libScanApi.a(SoftScanController.o) ld 中的 objc-class-ref:未找到架构 armv7 clang 的符号:错误:链接器
命令失败,退出代码为 1(使用 -v 查看调用)
出现的所有错误均与扫描仪的 SDK 相关。
我当前的构建设置是:
架构: Standard architecture
Base SDK: latest(9.0)
Build Active architecture only : no
valid architectures: armv7 armv7s arm64
任何帮助都会受到欢迎。
看来您没有将您的项目与AVFoundation
框架。
用户指南 https://developer.apple.com/library/ios/recipes/xcode_help-project_editor/Articles/AddingaLibrarytoaTarget.html.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)