无法安装'cordova-plugin-wkwebview-engine':cordovaerror:找不到-info.plist文件或config.xml文件 [英] Failed to install 'cordova-plugin-wkwebview-engine':cordovaerror: could not find -info.plist file, or config.xml file

查看:274
本文介绍了无法安装'cordova-plugin-wkwebview-engine':cordovaerror:找不到-info.plist文件或config.xml文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在尝试在现有应用程序中添加cordova wkwebview插件时遇到了一些奇怪的错误。



错误:如果我尝试更新ios cordova平台/////////////////

admins-mbp:WKWebView admin $ cordova平台更新ios更新ios项目...错误:未捕获,未指定的错误事件。 (updatePlatform不能从iOS项目API调用,你需要手动执行此操作。)////////////////////////////// ///////////////////////////////



错误:如果我尝试从CLI运行cordova项目//////////////////

admins-mbp:WKWebView admin $ cordova运行错误:找不到-Info.plist文件或config.xml文件。 ////////////////////////////////////////////////// ///////////

错误:如果我尝试添加cordova插件WKWebview ///////////////

admins-mbp:WKWebView管理员$ cordova平台更新ios更新ios项目...错误:未捕获,未指定错误事件。 (updatePlatform不能从iOS项目API调用,你需要手动执行此操作。)admins-mbp:WKWebView admin $ cordova插件添加cordova-plugin-wkwebview-engine通过npm获取插件cordova-plugin-wkwebview-engine为ios安装cordova-plugin-wkwebview-engine无法安装'cordova-plugin-wkwebview-engine':CordovaError:找不到-Info.plist文件或config.xml文件。在Plugman.addPlugin上的Object.parseProjectFile [as parse](/ Users / Tanuj / World Bank / CVS CodeBase / WKWebView / WKWebView / platforms / ios / cordova / lib / projectFile.js:50:15)(/ Users / Tanuj /世界银行/ CVS CodeBase / WKWebView / WKWebView / platforms / ios / cordova / lib / plugman / Plugman.js:69:31)在Api.addPlugin(/ Users / Tanuj / World Bank / CVS CodeBase / WKWebView / WKWebView / platforms / ios / cordova / Api.js:187:53)在/ usr / local /的handleInstall(/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:611:6) lib / node_modules / cordova / node_modules / cordova-lib / src / plugman / install.js:407:28 at _fulfilled(/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54)at Promise.promise.promiseDispatch中的self.promiseDispatch.done(/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:30)(/ usr / local / lib / node_modules / cordova / node_modules / q /q.js:749:13)在/usr/local/lib/node_modules/cordova/node_modules/q/q.js:509:49在flush(/ usr / local / lib / node_modules / cordova / node_modules / q / q.js:108:1 7)错误:找不到-Info.plist文件或config.xml文件。 admins-mbp:WKWebView admin $ /////////////////////////////////////////// //////////////////



我是这个cordova平台的新手,所以我不知道是什么当我在新项目中尝试相同的插件时,这种错误就是这样;它添加了这个插件。



我认为这是一些cordova版本的问题。请帮助我,因为我坚持这一点,无法前进。



我尝试过:



我不想从cordova中删除iOS平台。好像我这样做;它还将删除我当前的目标c文件和JS文件。所以最终我有唯一的选择来更新cordova平台。

I'm getting some weird error while trying to add cordova wkwebview plugin in my existing application.

Error: if i try to update ios cordova platform /////////////////
admins-mbp:WKWebView admin$ cordova platform update ios Updating ios project... Error: Uncaught, unspecified "error" event. (updatePlatform is not callable from the iOS project API, you will need to do this manually.) /////////////////////////////////////////////////////////////

Error: if i try to run cordova project from the CLI //////////////////
admins-mbp:WKWebView admin$ cordova run Error: could not find -Info.plist file, or config.xml file. /////////////////////////////////////////////////////////////
Error: if i try to add cordova plugin WKWebview///////////////
admins-mbp:WKWebView admin$ cordova platform update ios Updating ios project... Error: Uncaught, unspecified "error" event. (updatePlatform is not callable from the iOS project API, you will need to do this manually.) admins-mbp:WKWebView admin$ cordova plugin add cordova-plugin-wkwebview-engine Fetching plugin "cordova-plugin-wkwebview-engine" via npm Installing "cordova-plugin-wkwebview-engine" for ios Failed to install 'cordova-plugin-wkwebview-engine':CordovaError: could not find -Info.plist file, or config.xml file. at Object.parseProjectFile [as parse] (/Users/Tanuj/World Bank/CVS CodeBase/WKWebView/WKWebView/platforms/ios/cordova/lib/projectFile.js:50:15) at Plugman.addPlugin (/Users/Tanuj/World Bank/CVS CodeBase/WKWebView/WKWebView/platforms/ios/cordova/lib/plugman/Plugman.js:69:31) at Api.addPlugin (/Users/Tanuj/World Bank/CVS CodeBase/WKWebView/WKWebView/platforms/ios/cordova/Api.js:187:53) at handleInstall (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:611:6) at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:407:28 at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54) at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:30) at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:749:13) at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:509:49 at flush (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:108:17) Error: could not find -Info.plist file, or config.xml file. admins-mbp:WKWebView admin$ /////////////////////////////////////////////////////////////

I'm new to this cordova platform, so i don't know what kind of error is this, also when i tried the same plugin in new project; it adds this plugin.

I think this is some cordova version issue. Please help me as i'm stuck with this and no way to move ahead.

What I have tried:

I don't want to remove iOS platform from the cordova. As if I do so; it will also remove my current objective c files and JS files. So ultimately i have the only option to update the cordova platform.

推荐答案

cordova平台更新ios更新ios项目...错误:未捕获,未指定的错误事件。 (updatePlatform不能从iOS项目API调用,你需要手动执行此操作。)////////////////////////////// ///////////////////////////////



错误:如果我尝试从CLI运行cordova项目//////////////////

admins-mbp:WKWebView admin
cordova platform update ios Updating ios project... Error: Uncaught, unspecified "error" event. (updatePlatform is not callable from the iOS project API, you will need to do this manually.) /////////////////////////////////////////////////////////////

Error: if i try to run cordova project from the CLI //////////////////
admins-mbp:WKWebView admin


cordova run错误:找不到-Info.plist文件或config.xml文件。 ////////////////////////////////////////////////// ///////////

错误:如果我尝试添加cordova插件WKWebview ///////////////

admins-mbp:WKWebView admin
cordova run Error: could not find -Info.plist file, or config.xml file. /////////////////////////////////////////////////////////////
Error: if i try to add cordova plugin WKWebview///////////////
admins-mbp:WKWebView admin


cordova平台更新ios更新ios项目...错误:未捕获,未指定错误事件。 (updatePlatform不能从iOS项目API调用,您需要手动执行此操作。)admins-mbp:WKWebView admin
cordova platform update ios Updating ios project... Error: Uncaught, unspecified "error" event. (updatePlatform is not callable from the iOS project API, you will need to do this manually.) admins-mbp:WKWebView admin


这篇关于无法安装'cordova-plugin-wkwebview-engine':cordovaerror:找不到-info.plist文件或config.xml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆