Failed to restore plugin "phonegap-plugin-barcodescanner".

I have tried the cordova-plugin-firebase-ml-kit-barcode-scanner plugin, but it looks like it is also not working. See part of the log file below:

....
Install complete for cordova-plugin-whitelist on ios.
Finding scripts for "after_plugin_install" hook from plugin cordova-plugin-whitelist on ios platform only.
No scripts found for hook "after_plugin_install".
Adding cordova-plugin-whitelist to package.json
No scripts found for hook "after_plugin_add".
Discovered plugin "cordova-plugin-firebase-ml-kit-barcode-scanner". Adding it to the project
No scripts found for hook "before_plugin_add".
No version specified for cordova-plugin-firebase-ml-kit-barcode-scanner, retrieving version from config.xml
No version for cordova-plugin-firebase-ml-kit-barcode-scanner saved in config.xml or package.json
Attempting to use npm info for cordova-plugin-firebase-ml-kit-barcode-scanner to choose a compatible release
npm info for cordova-plugin-firebase-ml-kit-barcode-scanner did not contain any engine info. Fetching latest release
Calling plugman.fetch on plugin "cordova-plugin-firebase-ml-kit-barcode-scanner"
fetch: Installing cordova-plugin-firebase-ml-kit-barcode-scanner to 
Running command: npm install cordova-plugin-firebase-ml-kit-barcode-scanner --save-dev
Command finished with error code 0: npm install,cordova-plugin-firebase-ml-kit-barcode-scanner,--save-dev
Copying plugin "/node_modules/cordova-plugin-firebase-ml-kit-barcode-scanner" => "/plugins/cordova-plugin-firebase-ml-kit-barcode-scanner"
Calling plugman.install on plugin "/plugins/cordova-plugin-firebase-ml-kit-barcode-scanner" for platform "ios
Installing "cordova-plugin-firebase-ml-kit-barcode-scanner" for ios
Finding scripts for "before_plugin_install" hook from plugin cordova-plugin-firebase-ml-kit-barcode-scanner on ios platform only.
No scripts found for hook "before_plugin_install".
Install start for "cordova-plugin-firebase-ml-kit-barcode-scanner" on ios.
Beginning processing of action stack for ios project...
Adding non-custom framework to project... Foundation.framework -> {"customFramework":false,"embed":false,"link":true,"weak":false}
Non-custom framework added to project. Foundation.framework -> {"customFramework":false,"link":true,"weak":false}
Adding non-custom framework to project... AVFoundation.framework -> {"customFramework":false,"embed":false,"link":true,"weak":false}
Non-custom framework added to project. AVFoundation.framework -> {"customFramework":false,"link":true,"weak":false}
Action stack processing complete.
Failed to install 'cordova-plugin-firebase-ml-kit-barcode-scanner': Error: Does not appear to be an xcode project, no xcode project file in /platforms/ios
    at Function.getIOSProjectname (/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:241:15)
    at resolveConfigFilePath (/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:216:32)
    at ConfigFile.load (/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:57:42)
    at new ConfigFile (/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:52:14)
    at ConfigKeeper.get (/node_modules/cordova-common/src/ConfigChanges/ConfigKeeper.js:48:33)
    at PlatformMunger.apply_file_munge (/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:72:56)
    at PlatformMunger._munge_helper (/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:219:18)
    at PlatformMunger.add_plugin_changes (/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:148:14)
    at /node_modules/cordova-common/src/PluginManager.js:121:33
    at _fulfilled (/node_modules/q/q.js:854:54)
Failed to restore plugin "cordova-plugin-firebase-ml-kit-barcode-scanner". You might need to try adding it again. Error: Error: Does not appear to be an xcode project, no xcode project file in /platforms/ios
Discovered plugin "cordova-plugin-camera". Adding it to the project
No scripts found for hook "before_plugin_add".
Calling plugman.fetch on plugin "cordova-plugin-camera@4.0.3"
Copying plugin "/node_modules/cordova-plugin-camera" => "/plugins/cordova-plugin-camera"
Calling plugman.install on plugin "/plugins/cordova-plugin-camera" for platform "ios
Installing "cordova-plugin-camera" for ios
Finding scripts for "before_plugin_install" hook from plugin cordova-plugin-camera on ios platform only.
No scripts found for hook "before_plugin_install".
Install start for "cordova-plugin-camera" on ios.
....