科尔多瓦插件白名单无法要求科尔多瓦的iOS 4 [英] Cordova Plugin Whitelist Failed asking for cordova ios 4
问题描述
我试图运行
离子平台的ios安卓
和它给了我这个错误今日(正常工作之前)
的iOS安装科尔多瓦 - 插件白名单
无法安装'科尔多瓦 - 插件白名单:CordovaError:插件不支持该项目的科尔多瓦-IOS版本。科尔多瓦-IOS:3.8.0,失败的版本要求:> = 4.0.0-dev的
在checkEngines(/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:116:29)
在/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:289:16
在_fulfilled(/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54)
在self.promiseDispatch.done(/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:30)
在Promise.promise.promiseDispatch(/usr/local/lib/node_modules/cordova/node_modules/q/q.js:749:13)
在/usr/local/lib/node_modules/cordova/node_modules/q/q.js:557:44
在冲洗(/usr/local/lib/node_modules/cordova/node_modules/q/q.js:108:17)
在process._tickCallback(node.js中:355:11)
插件不支持该项目的科尔多瓦-IOS版本。科尔多瓦-IOS:3.8.0,失败的版本要求:> = 4.0.0-dev的
该问题是1.1.0版本的插件今天与需求释放,但科尔多瓦-的iOS 4还没有发布(仍在开发中)。所以,如果你想继续使用科尔多瓦-IOS 3.8,而稳定版本4发布时,必须安装插件(1.0.0)。
的previous版本 科尔多瓦插件添加cordova-plugin-whitelist@1.0.0
我不知道,如果你可以使用离子运行此命令。也许你要编辑的版本ios.json规定?
如果你不能做到这一点,也许你得等到科尔多瓦,iOS 4的发布
我创建了一个问题,<一个href="https://issues.apache.org/jira/browse/CB-9232">https://issues.apache.org/jira/browse/CB-9232
编辑:
从创建的问题:
如果你有科尔多瓦-IOS安装3.8.0,它不会安装该插件为iOS平台(但会做这样的人,如果他们满足发动机的要求)。该插件只适用于科尔多瓦-IOS 4.0.0有基于CSP,科尔多瓦,IOS不同的白名单机制3.8.0仍然使用旧的标签。
所以,现在(而科尔多瓦,iOS 4的工具的新版本发布时,你可以忽略这个错误)
I tried to run
ionic platform ios android
and it gives me this error today (it works fine before)
Installing "cordova-plugin-whitelist" for ios
Failed to install 'cordova-plugin-whitelist':CordovaError: Plugin doesn't support this project's cordova-ios version. cordova-ios: 3.8.0, failed version requirement: >=4.0.0-dev
at checkEngines (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:116:29)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:289:16
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:557:44
at flush (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:108:17)
at process._tickCallback (node.js:355:11)
Plugin doesn't support this project's cordova-ios version. cordova-ios: 3.8.0, failed version requirement: >=4.0.0-dev
The problem is that the 1.1.0 version of the plugin was released today with that requirement, but cordova-ios 4 is not released yet (is still in development). So if you wanna keep using cordova-ios 3.8 while the stable version 4 is released, you have to install the previous version of the plugin (1.0.0).
cordova plugin add cordova-plugin-whitelist@1.0.0
I'm not sure if you can run this command using Ionic. Maybe you have to edit the ios.json with the version specified?
If you can't do this, maybe you have to wait until cordova-ios 4 is released
I created an issue https://issues.apache.org/jira/browse/CB-9232
Edit:
From the issue created:
"If you have cordova-ios 3.8.0 installed, it won't install the plugin for the ios platform (but will do so for the others if they fulfill the engine requirement). The plugin only works for cordova-ios 4.0.0 which has a different whitelist mechanism based on CSP. cordova-ios 3.8.0 still uses the old tag."
So, for now (while the new version of the tools of cordova-ios 4 is released, you can ignore this error)
这篇关于科尔多瓦插件白名单无法要求科尔多瓦的iOS 4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!