简体   繁体   English

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

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

I looking at a older iOS project I haven't done anything with for a while and I need to update the SDK for a scanner so it is 64 bit. 我正在查看一个较旧的iOS项目,有一段时间没有进行任何操作,因此我需要更新扫描仪的SDK,使其为64位。 I added the files for the scanner kit (drag and drop) into the project but now when I build I get the error undefined symbols for architecture armv7 我将扫描仪套件的文件(拖放)添加到了项目中,但是现在当我构建时,我得到了体系结构armv7的错误未定义符号

It was referring to arm64 but I tried a couple of things and now it's referring to armv7 (setting other linker flags and editing the basic build settings). 它指的是arm64,但我尝试了几件事,现在指的是armv7(设置其他链接器标志并编辑基本的构建设置)。

My build settings are: Architecture: standard Base SDK 8.4 Build active architecture only: no Valid architectures: armv7 armv7s arm64 我的构建设置为:体系结构:标准Base SDK 8.4仅构建活动体系结构:否有效体系结构:armv7 armv7s arm64

The output from building is: 建筑物的输出为:

Ld /Users/meetingroom/Library/Developer/Xcode/DerivedData/xxx-apetpmawlnpfonginyycjwqagzuc/Build/Intermediates/xxx.build/Debug-iphoneos/xxx.build/Objects-normal/armv7/xxxx normal armv7 cd "/Users/meetingroom/Documents/iOS Projects/xxx Project/xxx iOS8" export IPHONEOS_DEPLOYMENT_TARGET=8.0 export 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/Users/meetingroom/Documents/iOS\\ Projects/xxx\\ Project/xxx\\ iOS8/xxx/ScanAPI/lib -F/Users/meetingroom/Library/Developer/Xcode/DerivedData/xxx-apetpmawlnpfonginyycjwqagzuc/Build/Produc 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 -filelist /Users/meetingroom/Library/Developer/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 /Users/meetingroom/Library/Developer/Xcode/DerivedData/xxx-apetpmawlnpfonginyycjwqagzuc/Build/Intermediates/xxx.build/Debug-iphoneos/xxx.build/Objects-normal/armv7/xxx_dependency_info.dat -o /Users/meetingroom/Library/Developer/Xcode/DerivedData/xxx-apetpmawlnpfonginyycjwqagzuc/Build/Intermediates/xxx.build/Debug-iphoneos/xxxx.build/Objects-normal/armv7/xxx 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

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-re 体系结构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 f 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)“ _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", 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) libScanApi.a(SoftScanController.o)“ _OBJC_CLASS _ $ _ AVCaptureDevice”,引用自:libScanApi.a(SoftScanController.o)中的objc-class-ref ld:找不到体系结构armv7铛的符号:错误:链接器命令失败退出代码1(使用-v查看调用)

The only errors are related to the SDK but I confirmed that I have installed that 64 bit version. 唯一的错误与SDK有关,但我确认已经安装了该64位版本。 Thanks in advance 提前致谢

I'm not sure how I posted this question up twice but it was answered here ( XCode - undefined symbols for architecture armv7 arm64 ) . 我不确定如何两次发布此问题,但在这里得到了回答( XCode-体系结构armv7 arm64的未定义符号 )。 In brief I hadn't linked the AVFoundation in my project. 简而言之,我没有在项目中链接AVFoundation。

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

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