离子3 - 无法使用最新的xcode为ios安装mixpanel插件

问题描述 投票:0回答:1

我执行了

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
ionic-framework npm ionic3 ionic-native
1个回答
0
投票

我刚遇到同样的问题。它与mixpanel插件的当前版本(4.6.0)有关。更多信息here

解决方案是安装该插件的先前版本。你必须删除当前的(只是为了安全):

rm -Rf plugins\cordova-plugin-mixpanel

(或删除您想要的文件夹)。然后安装4.5.2版:

cordova plugin add [email protected]
© www.soinside.com 2019 - 2024. All rights reserved.