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

-weak_library and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together #370

Open manjunathgudisi opened 6 years ago

manjunathgudisi commented 6 years ago
screen shot 2018-03-05 at 8 52 26 am

Hello

Im getting error below. Is it because of Tesseract-OCR-iOS framework is NOT enabled with Bitcode.

-weak_library and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together

How do I get the Tesseract-OCR-iOS framework, which is enabled with Bitcode. otherwise, what would be the alternative solution?.

Thans, Manju

swiftcrossing commented 6 years ago

Hey, this got me today as well. In the bottom of the Installation Guide, it says that you have to set ENABLE_BITCODE of the Tesseract-OCR-iOS pod to NO in addition to that of your project. This fixed the problem for me and I think this is the alternative solution, you're looking for.

There is also a link to a comment on another issue that shows how you can automate setting the property to NO after each pod install.

Hopefully this helps.

GKman6657 commented 6 years ago

真机不行,模拟器可以??

sulaimankhan7 commented 6 years ago

i was stuck on this problem for last three days. finally this is solved by adding the below line of code on pod file: post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['ENABLE_BITCODE'] = 'NO' end end end