繁体   English   中英

iOS-体系结构arm7,arm64的未定义符号

[英]iOS - undefined symbols for architecture arm7, arm64

我正在查看一个较旧的iOS项目,有一段时间没有进行任何操作,因此我需要更新扫描仪的SDK,使其为64位。 我将扫描仪套件的文件(拖放)添加到了项目中,但是现在当我构建时,我得到了体系结构armv7的错误未定义符号

它指的是arm64,但我尝试了几件事,现在指的是armv7(设置其他链接器标志并编辑基本的构建设置)。

我的构建设置为:体系结构:标准Base SDK 8.4仅构建活动体系结构:否有效体系结构:armv7 armv7s arm64

建筑物的输出为:

LD /用户/会议室/库/开发人员/Xcode/DerivedData/xxx-apetpmawlnpfonginyycjwqagzuc/Build/Intermediates/xxx.build/Debug-iphoneos/xxx.build/Objects-normal/armv7/xxxx normal armv7 cd“ /用户/会议室/文档/ iOS项目/ xxx项目/ xxx iOS8“导出IPHONEOS_DEPLOYMENT_TARGET = 8.0导出PATH =” / Applications / Xcode.app / Contents / Developer / Platforms / iPhoneOS.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 armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk -L / Users / meetingroom / Library / Developer / Xcode / DerivedData / xxx-apetpmawlnpfonginyycjwqagzuc / Build / Products / Debug -iphoneos -L /用户/会议室/ Documents / iOS \\ Projects / xxx \\ Project / xxx \\ iOS8 / xxx / ScanAPI / lib -F / Users / meetingroom / Library / Developer / Xcode / DerivedData / xxx-apetpmawlnpfonginyyycjwqagzuc / Build / Produc ts / Debug-iphoneos-文件列表/用户/会议室/库/开发人员/Xcode/DerivedData/xxx-apetpmawlnpfonginyycjwqagzuc/Build/Intermediates/xxx.build/Debug-iphoneos/xxx.build/Objects-normal/armv7/xxx.LinkFileList- dead_strip -fobjc-arc -fobjc-link-runtime -stdlib = libc ++ -miphoneos-version-min = 8.0 -framework AudioToolbox -framework ExternalAccessory -lsqlite3.0 -framework UIKit -framework Foundation -framework CoreGraphics -lScanApi -Xlinker -dependency_info -Xlinker /用户/会议室/图书馆/开发人员/Xcode/DerivedData/xxx-apetpmawlnpfonginyycjwqagzuc/Build/Intermediates/xxx.build/Debug-iphoneos/xxx.build/Objects-normal/armv7/xxx_dependency_info.dat -o /用户/会议室/图书馆/开发人员/Xcode/DerivedData/xxx-apetpmawlnpfonginyycjwqagzuc/Build/Intermediates/xxx.build/Debug-iphoneos/xxxx.build/Objects-normal/armv7/xxx

体系结构armv7的未定义符号:“ _AVMetadataObjectTypeUPCECode”,引用自:libScanApi.a(SoftScanController.o)中的-[SoftScanController initWithDeviceObject:] “ _AVMetadataObjectTypeCode93Code”,引用自:libScanApi.a(SoftScanController.o)中的-[SoftScanController initWithDeviceObject:]“ _AVMediaTypeVideo”,libScanApi.a(SoftScanController.o)-[SoftScan initWithDelegate:]中引用,“ _ AVMetadataObjectTypeTypeAztecCode”,引用:-引用自libScanApi.a(SoftScanController.o)中的[SoftScanController initWithDeviceObject:]“ _AVMetadataObjectTypeEAN13Code”,引用自:libScanApi.a(SoftScanController.o)中的-[SoftScanController initWithDeviceObject:]“ _AVLayerVideoGravityResizeAspectFill”,引用自:-[SoftScan start: ]在libScanApi.a(SoftScanController.o)中的“ _OBJC_CLASS _ $ _ AVCaptureVideoPreviewLayer”,引用自:objc-class-re 在libScanApi.a(SoftScanController.o)“ _AVMetadataObjectTypePDF417Code”中的f,引用自:libScanApi.a(SoftScanController.o)中的-[SoftScanController initWithDeviceObject:]“ _OBJC_CLASS _ $ _ AVCaptureSession”,在libScanApi.a中的objc-class-ref中引用(SoftScanController.o)“ _AVMetadataObjectTypeCode39Code”,引用自:libScanApi.a中的-[SoftScanController initWithDeviceObject:]。 _AVMetadataObjectTypeQRCode”,引用自:libScanApi.a(SoftScanController.o)中的-[SoftScanController initWithDeviceObject:]“ _OBJC_CLASS _ $ _ AVCaptureMetadataOutput”,引用自:libScanApi.a(SoftScanController.o)中的objc-class-ref“ _AVMetadataObjectTypeCode,Code_39Mod :-libScanApi.a(SoftScanController.o)中的[SoftScanController initWithDeviceObject:]“ _OBJC_CLASS _ $ _ AVCaptureDeviceInput”,引用自:objc-class-ref libScanApi.a(SoftScanController.o)“ _OBJC_CLASS _ $ _ AVCaptureDevice”,引用自:libScanApi.a(SoftScanController.o)中的objc-class-ref ld:找不到体系结构armv7铛的符号:错误:链接器命令失败退出代码1(使用-v查看调用)

唯一的错误与SDK有关,但我确认已经安装了该64位版本。 提前致谢

我不确定如何两次发布此问题,但在这里得到了回答( XCode-体系结构armv7 arm64的未定义符号 )。 简而言之,我没有在项目中链接AVFoundation。

暂无
暂无

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

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