Tesseract-OCR-iOS
Tesseract-OCR-iOS copied to clipboard
-weak_library and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together

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
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.
真机不行,模拟器可以??
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