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

Not working iOS 11 Xcode 9

Open azamsharp opened this issue 7 years ago • 2 comments

After adding the pod and adding the libz.tbd I get the following error when I build in Xcode:

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)

azamsharp avatar Feb 02 '18 21:02 azamsharp

In Xcode, click on project file, select your app target, select Build Settings from top option (Make sure to select All & Combined tab sections), Find Enable Bitcode and set its value to No.

Dangiiwa avatar Feb 05 '18 05:02 Dangiiwa

add these on your pod file, this will solve the problem 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