gali8 / Tesseract-OCR-iOS

Tesseract OCR iOS is a Framework for iOS7+, compiled also for armv7s and arm64.
http://www.nexor.it
MIT License
4.22k stars 949 forks source link

Xcode: clang: error: linker command failed with exit code 1 #268

Open Tom-Shen opened 8 years ago

Tom-Shen commented 8 years ago

I ran into this issue while trying to build my project with TesseractOCR.framework:

ld: '/Users/username/Documents/MyProject/TesseractOCR.framework/TesseractOCR' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Here is all of my linked library:

CoreImage.framework libstdc++.tbd TesseractOCR.framework

P.S. I can't disable bitcode for other reasons, and I can't seems to succeed on building it from scratch.

davideneves commented 8 years ago

Hi, I think you need to go to your project target (and/or tesseract framework build settings if you imported from cocoapods) build settings, search for 'enable_bitcode' and set it to 'no'.