Since I up to date to Cordova Cli 12 & Cordova IOS 7, I get this error when attempting so as to add our {custom} plugin.
cordova plugins add ../../cordova-custom-plugins/DIMScanner/DimScannerCordovaPlugin/
I don’t know what the message means, any assistance is welcome.
Plugin "cordova-plugin-dimscanner" already put in on android.
Putting in "cordova-plugin-dimscanner" for ios
Error throughout processing of motion! Trying to revert...
Failed to put in 'cordova-plugin-dimscanner': TypeError [ERR_INVALID_ARG_TYPE]: Uh oh!
The "path" argument should be of kind string. Acquired undefined
at new NodeError (node:inside/errors:399:5)
at validateString (node:inside/validators:163:11)
at Object.basename (node:path:1313:5)
at new pbxFile (/Customers/patrick/VMSharedFolder/Tasks/newgesmobile/gesmobile/src-cordova/node_modules/xcode/lib/pbxFile.js:189:26)
at pbxProject.addBuildPhase (/Customers/patrick/VMSharedFolder/Tasks/newgesmobile/gesmobile/src-cordova/node_modules/xcode/lib/pbxProject.js:921:26)
at set up (/Customers/patrick/VMSharedFolder/Tasks/newgesmobile/gesmobile/src-cordova/node_modules/cordova-ios/lib/plugman/pluginHandlers.js:124:31)
at ActionStack.course of (/Customers/patrick/VMSharedFolder/Tasks/newgesmobile/gesmobile/src-cordova/node_modules/cordova-ios/node_modules/cordova-common/src/ActionStack.js:55:25)
at PluginManager.doOperation (/Customers/patrick/VMSharedFolder/Tasks/newgesmobile/gesmobile/src-cordova/node_modules/cordova-ios/node_modules/cordova-common/src/PluginManager.js:111:24)
at PluginManager.addPlugin (/Customers/patrick/VMSharedFolder/Tasks/newgesmobile/gesmobile/src-cordova/node_modules/cordova-ios/node_modules/cordova-common/src/PluginManager.js:141:21)
at Api.addPlugin (/Customers/patrick/VMSharedFolder/Tasks/newgesmobile/gesmobile/src-cordova/node_modules/cordova-ios/lib/Api.js:258:14)
TypeError [ERR_INVALID_ARG_TYPE]: The "code" argument should be of kind quantity. Acquired kind string ('ERR_INVALID_ARG_TYPE')
at course of.set [as exitCode] (node:inside/bootstrap/node:124:9)
at /usr/native/lib/node_modules/cordova/bin/cordova:32:22
The plugin makes use of the next plugin.xml file
<plugin id="cordova-plugin-dimscanner" model="1.0.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<identify>DIMScanner</identify>
<js-module identify="DIMScanner" src="www/DIMScanner.js">
<clobbers goal="cordova.plugins.DIMScanner" />
</js-module>
<platform identify="ios">
<config-file dad or mum="/*" goal="config.xml">
<function identify="DIMScanner">
<param identify="ios-package" worth="DIMScanner" />
</function>
</config-file>
<choice identify="CAMERA_USAGE_DESCRIPTION" default="This app wants digital camera entry"/>
<config-file goal="*-Information.plist" dad or mum="NSCameraUsageDescription">
<string>$CAMERA_USAGE_DESCRIPTION</string>
</config-file>
<choice identify="PHOTO_LIBRARY_USAGE_DESCRIPTION" default="This app must entry photograph library"/>
<config-file goal="*-Information.plist" dad or mum="NSPhotoLibraryUsageDescription">
<string>$PHOTO_LIBRARY_USAGE_DESCRIPTION</string>
</config-file>
<source-file src="src/ios/DIMScanner.swift" />
<framework src="src/ios/DimScannerFramework.framework" {custom}="true" embed="true"/>
<podspec>
<config>
</config>
<pods use-frameworks="true">
<pod identify="Alamofire" tag="5.0.0-rc.3" git="https://github.com/Alamofire/Alamofire.git" />
<pod identify="SnapKit"/>
<pod identify="PKHUD" tag="5.3.0" git="https://github.com/pkluz/PKHUD.git"/>
<pod identify="Firebase/MLVisionTextModel"/>
</pods>
</podspec>
</platform>
The plugin.xml makes use of our personal framework
Thanks