我执行了
ionic cordova platform add ios
发生以下错误,我花了一整天时间,但找不到解决方法。
apple-ios version check failed ("D:\Ionic\Jobtivity\MobileAppTesting1.1\platforms\ios\cordova\apple_ios_version"), continuing anyways.
Installing "cordova-plugin-mixpanel" for ios
Error during processing of action! Attempting to revert...
Failed to install 'cordova-plugin-mixpanel': CordovaError: Uh oh!
Cannot find resource file "D:\Ionic\Jobtivity\MobileAppTesting1.1\plugins\cordova-plugin-mixpanel\src\ios\Mixpanel\.DS_Store" for plugin cordova-plugin-mixpanel in iOS platform
at install (D:\Ionic\Jobtivity\MobileAppTesting1.1\platforms\ios\cordova\lib\plugman\pluginHandlers.js:61:23)
at ActionStack.process (D:\Ionic\Jobtivity\MobileAppTesting1.1\platforms\ios\cordova\node_modules\cordova-common\src\ActionStack.js:56:25)
at PluginManager.doOperation (D:\Ionic\Jobtivity\MobileAppTesting1.1\platforms\ios\cordova\node_modules\cordova-common\src\PluginManager.js:114:20)
at PluginManager.addPlugin (D:\Ionic\Jobtivity\MobileAppTesting1.1\platforms\ios\cordova\node_modules\cordova-common\src\PluginManager.js:144:17)
at Api.addPlugin (D:\Ionic\Jobtivity\MobileAppTesting1.1\platforms\ios\cordova\Api.js:234:10)
at handleInstall (C:\Users\Satya\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:594:10)
at C:\Users\Satya\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:357:28
at _fulfilled (C:\Users\Satya\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:854:54)
at C:\Users\Satya\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:883:30
at Promise.promise.promiseDispatch (C:\Users\Satya\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:816:13)
Uh oh!
Cannot find resource file "D:\Ionic\Jobtivity\MobileAppTesting1.1\plugins\cordova-plugin-mixpanel\src\ios\Mixpanel\.DS_Store" for plugin cordova-plugin-mixpanel in iOS platform
答案 0 :(得分:0)
我只是遇到了同样的问题。与最新版本的mixpanel插件(4.6.0)有关。更多信息here
解决方案是安装该插件的早期版本。您必须删除当前的一个(为了安全起见):
rm -Rf plugins\cordova-plugin-mixpanel
(或删除所需的文件夹)。然后安装版本4.5.2:
cordova plugin add cordova-plugin-mixpanel@4.5.2