Cordova-plugin-mobile-ocr

What platform are you building for?

iOS

What framework are you building with?

Cordova

What is your build ID?

05afba0d-a0ab-4268-926a-5d103e73ee48

What is your error message?

I got the below message when I use cordova-plugin-mobile-ocr plugin.

UserError: Failed to restore plugin “cordova-plugin-mobile-ocr”.You might need to try adding it again.Error: Error [ERR_UNHANDLED_ERROR]: Uh oh!

Reviewing you log, I see this:

Installing "cordova-plugin-mobile-ocr" for ios
Error during processing of action! Attempting to revert...
Failed to install 'cordova-plugin-mobile-ocr': Error [ERR_UNHANDLED_ERROR]: Uh oh!
Unhandled error. ('"framework" tag with type "podspec" is no longer supported. Please use the "podspec" tag.')
    at CordovaEventEmitter.emit (node:events:508:17)
    at CordovaEventEmitter.emit (/usr/local/lib/node_modules/cordova/node_modules/cordova-common/src/events.js:69:22)
    at install (/VQS_App_IOS.phonegap/node_modules/cordova-ios/lib/plugman/pluginHandlers.js:114:32)
    at ActionStack.process (/VQS_App_IOS.phonegap/node_modules/cordova-common/src/ActionStack.js:55:25)
    at PluginManager.doOperation (/VQS_App_IOS.phonegap/node_modules/cordova-common/src/PluginManager.js:111:24)
    at PluginManager.addPlugin (/VQS_App_IOS.phonegap/node_modules/cordova-common/src/PluginManager.js:141:21)
    at Api.addPlugin (/VQS_App_IOS.phonegap/node_modules/cordova-ios/lib/Api.js:244:14)
    at handleInstall (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:552:10)
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:335:28
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
Failed to restore plugin "cordova-plugin-mobile-ocr". You might need to try adding it again. Error: Error [ERR_UNHANDLED_ERROR]: Uh oh!
Unhandled error. ('"framework" tag with type "podspec" is no longer supported. Please use the "podspec" tag.')

This is a problem with the plugin. It appears there’s been an issue open for this for a number of years: podspec issue installing on iOS 7+ · Issue #49 · NeutrinosPlatform/cordova-plugin-mobile-ocr

This plugin may be abandoned. You might try opening a new issue or commenting on the old issue. It’s also possible that someone has forked and fixed this plugin. Worst case, you may need to fix it yourself or pay someone to do it for you.

Let me know if I can help further!