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

[UIImage fixOrientation]: unrecognized selector sent to instance #406

Open RustyKnight opened 5 years ago

RustyKnight commented 5 years ago

macOS 10.15 Beta 19A471t Xcode 10.2.1 (10E1001) iOS (physical device) 12.3.1

TesseractOCR.framework (4.0.0) installed via Carthage and added to projects "Linked Frameworks and Libraries"

Recognition code take from examples. Error occurs on:

operation.tesseract.image = image;

Image is captured from the camera an in the "Up" orientation

AlexIzh commented 5 years ago

Adding -all_load or -force_load to Other Linker Flags should solve the issue.