簡體   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