iOS - 架构arm7,arm64

时间:2015-10-11 00:13:49

标签: ios xcode socketscan

我正在查看一个较旧的iOS项目,我暂时没有做任何事情,我需要为扫描仪更新SDK,因此它是64位。 我将扫描仪套件的文件(拖放)添加到项目中,但现在我构建时出现错误 架构armv7的未定义符号

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

我的构建设置是: 架构:标准 基础SDK 8.4 仅构建活动架构:否 有效的架构:armv7 armv7s arm64

建筑物的输出是:

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 / Products / 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 - 框架AudioToolbox -framework ExternalAccessory -lsqlite3.0 -framework UIKit -framework Foundation -framework CoreGraphics -lScanApi -Xlinker -dependency_info -Xlinker / Users / m eetingroom / 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 /建造/中间体/ xxx.build /调试-的iPhoneOS / xxxx.build /对象 - 正常/ ARMv7的/ XXX

架构armv7的未定义符号:   " _AVMetadataObjectTypeUPCECode",引自:        - libScanApi.a中的[SoftScanController initWithDeviceObject:](SoftScanController.o)   " _AVMetadataObjectTypeEAN8Code",引自:        - libScanApi.a中的[SoftScanController initWithDeviceObject:](SoftScanController.o)   " _AVMetadataObjectTypeCode93Code",引自:        - libScanApi.a中的[SoftScanController initWithDeviceObject:](SoftScanController.o)   " _AVMediaTypeVideo",引自:        - libScanApi.a中的[SoftScan initWithDelegate:](SoftScanController.o)   " _AVMetadataObjectTypeAztecCode",引自:        - libScanApi.a中的[SoftScanController initWithDeviceObject:](SoftScanController.o)   " _AVMetadataObjectTypeEAN13Code",引自:        - libScanApi.a中的[SoftScanController initWithDeviceObject:](SoftScanController.o)   " _AVLayerVideoGravityResizeAspectFill",引自:        - libScanApi.a中的[SoftScan start:](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",引自:        - libScanApi.a中的[SoftScanController initWithDeviceObject:](SoftScanController.o)   " _AVMetadataObjectTypeCode128Code",引自:        - libScanApi.a中的[SoftScanController initWithDeviceObject:](SoftScanController.o)   " _AVMetadataObjectTypeQRCode",引自:        - libScanApi.a中的[SoftScanController initWithDeviceObject:](SoftScanController.o)   " _OBJC_CLASS _ $ _ AVCaptureMetadataOutput",引自:       libScanApi.a中的objc-class-ref(SoftScanController.o)   " _AVMetadataObjectTypeCode39Mod43Code",引自:        - libScanApi.a中的[SoftScanController initWithDeviceObject:](SoftScanController.o)   " _OBJC_CLASS _ $ _ AVCaptureDeviceInput",引自:       libScanApi.a中的objc-class-ref(SoftScanController.o)   " _OBJC_CLASS _ $ _ AVCaptureDevice",引自:       libScanApi.a中的objc-class-ref(SoftScanController.o) ld:找不到架构armv7的符号 clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)

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

1 个答案:

答案 0 :(得分:0)

我不确定我是如何两次发布这个问题的,但这里已经回答了问题(XCode - undefined symbols for architecture armv7 arm64)。 简而言之,我没有在我的项目中链接AVFoundation。