gpt4 book ai didi

android - 无法为我的 ionic 3 应用程序安装 cordova phonegap-push-plugin

转载 作者:行者123 更新时间:2023-11-29 00:04:49 25 4
gpt4 key购买 nike

我尝试在 mac 上为我的 ionic 3 应用程序安装推送插件。

为了安装,我运行:sudo ionic cordova plugin add phonegap-plugin-push

结果我得到:

-Android 似乎还可以

-对于 iOS,我收到以下错误:

Installing "phonegap-plugin-push" for android
Subproject Path: CordovaLib
Installing "phonegap-plugin-push" for ios
Error during processing of action! Attempting to revert...
Failed to install 'phonegap-plugin-push': Error
at copyNewFile (/Users/macbook/ionic/push2018-2/platforms/ios/cordova/lib/plugman/pluginHandlers.js:346:45)
at installHelper (/Users/macbook/ionic/push2018-2/platforms/ios/cordova/lib/plugman/pluginHandlers.js:269:13)
at install (/Users/macbook/ionic/push2018-2/platforms/ios/cordova/lib/plugman/pluginHandlers.js:35:13)
at ActionStack.process (/Users/macbook/ionic/push2018-2/platforms/ios/cordova/node_modules/cordova-common/src/ActionStack.js:56:25)
at PluginManager.doOperation (/Users/macbook/ionic/push2018-2/platforms/ios/cordova/node_modules/cordova-common/src/PluginManager.js:114:20)
at PluginManager.addPlugin (/Users/macbook/ionic/push2018-2/platforms/ios/cordova/node_modules/cordova-common/src/PluginManager.js:144:17)
at Api.addPlugin (/Users/macbook/ionic/push2018-2/platforms/ios/cordova/Api.js:234:10)
at handleInstall (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:594:10)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:357:28
at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54)

Error: Uh oh!
"/Users/macbook/ionic/push2018-2/platforms/ios/push2018-2/Plugins/phonegap-plugin-
push/AppDelegate+notification.m" already exists!

[ERROR] An error occurred while running cordova plugin add phonegap-plugin-push --save (exit code 1).

============================================= ============

我的技术:

cli packages: (/usr/local/lib/node_modules)
@ionic/cli-utils : 1.19.1
ionic (Ionic CLI) : 3.19.1

全局包:

cordova (Cordova CLI) : 7.1.0 

本地包:

@ionic/app-scripts : 3.1.8

Cordova Platforms : android 6.3.0 ios 4.5.4

Ionic Framework : ionic-angular 3.9.2

系统:

ios-deploy : 1.9.0 
ios-sim : 5.0.13
Node : v7.3.0
npm : 3.10.10
OS : macOS High Sierra
Xcode : Xcode 9.2 Build version 9C40b

/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.4.0/lib/cocoapods.rb

知道是什么原因造成的吗?

谢谢

最佳答案

问题解决了。如果它对某人有帮助:我已经安装了没有“sudo”命令的phonegap-plugin-push。

关于android - 无法为我的 ionic 3 应用程序安装 cordova phonegap-push-plugin,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48389100/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com