Cordova-plugin-mobile-ocr

I have installed a plugin called cordova-plugin-mobile-ocr. When attempting to build for android it builds without issue. however, when trying to build for ios, it is throwing a build error:

=== BUILD TARGET GoogleToolboxForMac OF PROJECT Pods WITH CONFIGURATION Debug ===

Check dependencies

** BUILD FAILED **

The following build commands failed:

ProcessProductPackaging “” /Users/gregorysanders/Library/Developer/Xcode/DerivedData/hybridchart3-bgmbxulfhipiawanpfufxlhawkuq/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/GoogleMobileVision-GoogleMVTextDetectorResources.build/GoogleMVTextDetectorResources.bundle-Simulated.xcent

(1 failure)

CordovaError: Promise rejected with non-error: ‘Error code 65 for command: xcodebuild with args: -xcconfig,/Users/gregorysanders/ionictest/hybridchart3-ocr/platforms/ios/cordova/build-debug.xcconfig,-workspace,hybridchart3.xcworkspace,-scheme,hybridchart3,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone X,build,CONFIGURATION_BUILD_DIR=/Users/gregorysanders/ionictest/hybridchart3-ocr/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/gregorysanders/ionictest/hybridchart3-ocr/platforms/ios/build/sharedpch,-UseModernBuildSystem=0’

at cli.catch.err (/usr/local/lib/node_modules/cordova/bin/cordova:30:15)

at <anonymous>

at process._tickCallback (internal/process/next_tick.js:189:7)

[ ERROR ] An error occurred while running subprocess cordova .

cordova build ios --buildFlag=-UseModernBuildSystem=0 exited with exit code 1.

I removed platform ios and re-added it.
I did a Pod Update from the platform/ios folder as well.
Still getting the error.

Any help would be appreciated. Thanks.

Sorry, I don’t have an answer, just looking for directions. I am going to try and implement the Cordova-plugin-mobile-ocr in ionic 4 and wonder if you able to fix the problem? If you did, can you provide me with some guidance?

Any help would be appreciated. Thanks.

When i try to execute on android emulator exception is thrown but i cannot recognize where to it related
image

    onSave(testImage) {
      this.textocr.recText(OCRSourceType.NORMFILEURL,testImage).then(text=>{
        alert(text);
      });
      function onSuccess(recognizedText) {
            
            console.log(recognizedText);
            alert(recognizedText);
      }
      function onFail(message) {
            alert('Failed because: ' + message);
      }
}

this is what i tried. how can i fix this ?