Tesseract-OCR-iOS icon indicating copy to clipboard operation
Tesseract-OCR-iOS copied to clipboard

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

Open manjunathgudisi opened this issue 6 years ago • 3 comments

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

manjunathgudisi avatar Mar 05 '18 03:03 manjunathgudisi

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.

swiftcrossing avatar Mar 12 '18 09:03 swiftcrossing

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

GKman6657 avatar May 08 '18 11:05 GKman6657

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

sulaimansust avatar Aug 09 '18 11:08 sulaimansust