我正在尝试将Scandit Barcode scannner插件集成到我的基于cordova的iOS平台应用程序中,但我无法做到这一点。我尝试了以下步骤:
1)下载了适用于Phonegap / Cordova的SDK并将其解压缩到一个文件夹中。 2)使用Cordova CLI,我执行了以下命令:
cordova plugin add <path to the folder>
运行时出现以下错误:
/usr/local/lib/node_modules/cordova/node_modules/q/q.js:126
throw e;
^
Error: Parsing /Users/macuser/Desktop/AppBackup/miniOrangeAuthenticator/platforms/ios/miniOrange Authenticator/config.xml failed:
ENOENT, no such file or directory '/Users/macuser/Desktop/AppBackup/ProjectName/platforms/ios/miniOrange Authenticator/config.xml'
at Object.config_parser (/usr/local/lib/node_modules/cordova/src/config_parser.js:28:15)
at Object.ios_parser (/usr/local/lib/node_modules/cordova/src/metadata/ios_parser.js:62:19)
at /usr/local/lib/node_modules/cordova/src/plugin.js:98:46
at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:798:54)
at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:827:30)
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:760:13)
at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:821:14
at flush (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:108:17)
at process._tickCallback (node.js:415:13)
at Function.Module.runMain (module.js:499:11)
macmans-MacBook-Air:ProjectName macuser$
可能是什么原因?有没有其他方法我可以完成它(没有CLI)?
答案 0 :(得分:0)
将miniOrange Authenticator
更改为miniOrangeAuthenticator
。我不认为CLI是空间的忠实粉丝(过去我遇到了问题)。