ios - ScannerKit API - Apple Mach-O 链接器错误

标签 ios xcode api

我正在尝试将 ScannerKit API 添加到我已添加到所需文件中的应用程序中。 添加到框架中可以正常工作,但是当我构建并运行时,我遇到了 50 多个错误。

所有 Apple Mach-O 链接器错误

这里有一些:

Undefined symbols for architecture armv7:
  "__ZNSs6assignEPKcm", referenced from:
      __ZN8meatloaf10boundariesC2ESt6vectorINS_8scanlineESaIS2_EE in libScannerKit.a(boundaries.o)
      __ZN8meatloaf10boundaries15find_boundariesEv in libScannerKit.a(boundaries.o)
  "__Znwm", referenced from:
      -[SKLocalCodeRecognizer attemptRecognitionUsingFrame:] in libScannerKit.a(SKLocalCodeRecognizer.o)
      -[SKCodeIntegrityManager boundaryExistsInFrame:] in libScannerKit.a(SKCodeIntegrityManager.o)
      __ZNSt12_Vector_baseIiSaIiEE11_M_allocateEm in libScannerKit.a(SKCodeIntegrityManager.o)
      __ZNSt12_Vector_baseIN8meatloaf8scanlineESaIS1_EE11_M_allocateEm in libScannerKit.a(SKCodeIntegrityManager.o)
      __ZN5zxing28FastGreyscaleLuminanceSource22rotateCounterClockwiseEv in libScannerKit.a(FastGreyscaleLuminanceSource.o)
      __ZN5zxing24GlobalHistogramBinarizer11getBlackRowEiNS_3RefINS_8BitArrayEEE in libScannerKit.a(GlobalHistogramBinarizer.o)
      __ZN5zxing24GlobalHistogramBinarizer14getBlackMatrixEv in libScannerKit.a(GlobalHistogramBinarizer.o)

** 更新 **

我不再有 50 多个错误我修复了这个购买更改build设置中的“其他链接器标志”。

但我仍然遇到 3 个错误!

如果有人能告诉我是什么原因造成的:

Ld /Users/elistone/Library/Developer/Xcode/DerivedData/RSSTestApp-ffjjgtzfgquuazdwtfemwyzzjmfo/Build/Products/Debug-iphoneos/RSSTestApp.app/RSSTestApp normal armv7
    cd "/Users/elistone/Desktop/RSS Test App"
    setenv IPHONEOS_DEPLOYMENT_TARGET 5.0
    setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang -arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -L/Users/elistone/Library/Developer/Xcode/DerivedData/RSSTestApp-ffjjgtzfgquuazdwtfemwyzzjmfo/Build/Products/Debug-iphoneos "-L/Users/elistone/Desktop/RSS Test App/ScannerKit-4.2.2" -F/Users/elistone/Library/Developer/Xcode/DerivedData/RSSTestApp-ffjjgtzfgquuazdwtfemwyzzjmfo/Build/Products/Debug-iphoneos "-F/Users/elistone/Desktop/RSS Test App" -filelist /Users/elistone/Library/Developer/Xcode/DerivedData/RSSTestApp-ffjjgtzfgquuazdwtfemwyzzjmfo/Build/Intermediates/RSSTestApp.build/Debug-iphoneos/RSSTestApp.build/Objects-normal/armv7/RSSTestApp.LinkFileList -dead_strip -all_load -lstdc++ -miphoneos-version-min=5.0 -framework AudioToolbox -framework QuartzCore -framework CoreVideo -framework CoreMedia -framework AVFoundation -framework CoreGraphics -framework SystemConfiguration -framework Foundation -framework UIKit -lxml2 -lScannerKit -o /Users/elistone/Library/Developer/Xcode/DerivedData/RSSTestApp-ffjjgtzfgquuazdwtfemwyzzjmfo/Build/Products/Debug-iphoneos/RSSTestApp.app/RSSTestApp

Undefined symbols for architecture armv7:
  "_iconv_close", referenced from:
      __ZN5zxing6qrcode22DecodedBitStreamParser6appendERSsPKhmPKc in libScannerKit.a(DecodedBitStreamParser-B6EF2F7091225D41.o)
  "_iconv", referenced from:
      __ZN5zxing6qrcode22DecodedBitStreamParser6appendERSsPKhmPKc in libScannerKit.a(DecodedBitStreamParser-B6EF2F7091225D41.o)
  "_iconv_open", referenced from:
      __ZN5zxing6qrcode22DecodedBitStreamParser6appendERSsPKhmPKc in libScannerKit.a(DecodedBitStreamParser-B6EF2F7091225D41.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

谢谢。

最佳答案

问题已解决。

我添加了框架 libiconv.dylib。

关于ios - ScannerKit API - Apple Mach-O 链接器错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8997581/

相关文章:

objective-c - 将现有 OAuth 凭据迁移到 ACAccountStore 时出错

ios - 动态显示来自服务 Objective-C 的状态消息

ios - 从警报启动设置

ios - NSInvalidArgumentException',原因 : 'Resource count cannot be found in the main bundle'

php - Shopify 无效的 token 和密码错误

iphone - UI 滞后,背景频繁更新

objective-c - po [NSThread 当前线程]

ios - 如何检查解析 Xcode 中获取的用户名

javascript - 构建 JavaScript API

node.js - 构建 Node.js API(使用标准 MongoDB URI 的 mongodb 连接出现意外 token 错误)