clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)

时间:2015-11-11 12:03:59

标签: clang xcode7 linker-errors tesseract

我有可可豆荚项目和TesseractOCRiOS项目 - XCODE 7.1(7B91b)

当我正在构建适用于iPad的应用程序(9.1)时,TesseractOCRiOS Framework因此错误而失败

在模拟器上构建工作正常..

我试过

  • 清除派生数据
  • 清洁项目,
  • 设置ENABLE_BITCODE = NO
  • 仅限构建活动架构=否

我不明白这个错误意味着什么:(

    Ld /Users/whipstercz/Library/Developer/Xcode/DerivedData/sw-paperless-flbrahykkapkkfeylglxcishyehc/Build/Products/Debug-iphoneos/TesseractOCR.framework/TesseractOCR normal armv7
    cd /Users/whipstercz/git/sw-paperless-app/sw-paperless/Pods
    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/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch armv7 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.1.sdk -L/Users/whipstercz/Library/Developer/Xcode/DerivedData/sw-paperless-flbrahykkapkkfeylglxcishyehc/Build/Products/Debug-iphoneos -L/Users/whipstercz/git/sw-paperless-app/sw-paperless/Pods/TesseractOCRiOS/TesseractOCR/lib -F/Users/whipstercz/Library/Developer/Xcode/DerivedData/sw-paperless-flbrahykkapkkfeylglxcishyehc/Build/Products/Debug-iphoneos -filelist /Users/whipstercz/Library/Developer/Xcode/DerivedData/sw-paperless-flbrahykkapkkfeylglxcishyehc/Build/Intermediates/Pods.build/Debug-iphoneos/TesseractOCRiOS.build/Objects-normal/armv7/TesseractOCR.LinkFileList -install_name @rpath/TesseractOCR.framework/TesseractOCR -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -miphoneos-version-min=8.0 -dead_strip -fembed-bitcode-marker -weak_library /usr/lib/libstdc++.6.0.9.dylib -llept -lstdc++ -ltesseract_all -framework Foundation -framework UIKit -fobjc-arc -fobjc-link-runtime -framework Foundation -framework UIKit -single_module -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/whipstercz/Library/Developer/Xcode/DerivedData/sw-paperless-flbrahykkapkkfeylglxcishyehc/Build/Intermediates/Pods.build/Debug-iphoneos/TesseractOCRiOS.build/Objects-normal/armv7/TesseractOCR_dependency_info.dat -o /Users/whipstercz/Library/Developer/Xcode/DerivedData/sw-paperless-flbrahykkapkkfeylglxcishyehc/Build/Products/Debug-iphoneos/TesseractOCR.framework/TesseractOCR

ld: -weak_library and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together
clang: error: linker command failed with exit code 1 (use -v to see invocation)

1 个答案:

答案 0 :(得分:1)

我找到了错误

问题是我有更多可可豆荚的依赖。 并非所有人都禁用了ENABLE_BITCODE标志