I'm trying to build an mobile ocr tesseract plugin (with offline functionalities), for Android its work perfect, for IOS i have some compiling error

Error generating TestOCR (iOS): Error compiling Cordova plugin: TestOCR/Plugins/cordova-plugin-tesseract/claseAuxiliar.mm


The following build commands failed: 

CompileC /Users/mabs04/Library/Developer/Xcode/DerivedData/TestOCR-ddwstbiacgciliagngjpvakqkfan/Build/Intermediates.noindex/ArchiveIntermediates/TestOCR/IntermediateBuildFilesPath/TestOCR.build/Debug-iphoneos/TestOCR.build/Objects-normal/armv7/claseAuxiliar.o TestOCR/Plugins/cordova-plugin-tesseract/claseAuxiliar.mm 

normal armv7 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (1 failure) /tmp/build/source/platforms/ios/build/sharedpch,-UseModernBuildSystem=0

I think it's because of this (its missing):

3. For iOS platform:

3.1 Inside root directory of your ios platform, create Podfile and add Tesseract OCR iOS (Tesseract library for iOS7+) as a dependency:

  • Create your-project/platforms/ios/Podfile
  • Add 'TesseractOCRiOS' dependency (replace 'ocr-translation' with the name of your project):

source 'https://github.com/CocoaPods/Specs.git'
xcodeproj 'ocr-translation.xcodeproj/'

target 'ocr-translation' do

pod 'TesseractOCRiOS', '4.0.0'


Anyone knows how and where can i add this on plugin?

Git: https://github.com/gustavomazzoni/cordova-plugin-tesseract

With best regards,

Bruno Neves

Have you tried this component? https://www.outsystems.com/forge/component-overview/3086/simple-ocr

It also has a sample mobile: https://www.outsystems.com/forge/component-overview/3501/simple-ocr-sample-mobile

I've never tried this, but usually you need the FileSystem component to deal with files.