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

Not working iOS 11 Xcode 9 #362

Open azamsharp opened 6 years ago

azamsharp commented 6 years ago

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)

Dangiiwa commented 6 years ago

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.

sulaimankhan7 commented 6 years ago

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