离子添加平台iOS在Mac OS Sierra上显示phonegap-plugin-push错误 [英] Ionic add platform ios showing phonegap-plugin-push error on mac OS Sierra

查看:162
本文介绍了离子添加平台iOS在Mac OS Sierra上显示phonegap-plugin-push错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试添加显示以下错误的ios平台时, 正在添加ios项目...

Hi when i tried to platform add ios showing the following error, Adding ios project...

为iOS平台创建Cordova项目: 路径:平台/ios 封装:com.leniko.fuel-buddy 名称:加油好友 使用cordova-ios@4.4.0创建的iOS项目 为iOS安装"cordova-plugin-app-version" 为iOS安装"cordova-plugin-apprate" 使用该版本的插件依赖项"cordova-plugin-dialogs@1.3.0"已被获取. 为iOS安装"cordova-plugin-dialogs" 使用该版本的插件依赖性"cordova-plugin-globalization@1.0.4"已被获取. 为iOS安装"cordova-plugin-globalization" 适用于Cordova/PhoneGap的跨平台AppRate插件 为iOS安装"cordova-plugin-camera" 使用该版本的插件依赖性"cordova-plugin-compat@1.1.0"已被获取. 为iOS安装"cordova-plugin-compat" 插件"cordova-plugin-compat"已安装在ios上.使它成为顶级. 为iOS安装"cordova-plugin-console" 为iOS安装"cordova-plugin-device" 插件"cordova-plugin-dialogs"已安装在ios上.使它成为顶级. 为iOS安装"cordova-plugin-file" 使用该版本的插件依赖性"cordova-plugin-compat@1.1.0"已被获取. 依赖插件"cordova-plugin-compat"已安装在ios上.

Creating Cordova project for the iOS platform: Path: platforms/ios Package: com.leniko.fuel-buddy Name: Fuel Buddy iOS project created with cordova-ios@4.4.0 Installing "cordova-plugin-app-version" for ios Installing "cordova-plugin-apprate" for ios Plugin dependency "cordova-plugin-dialogs@1.3.0" already fetched, using that version. Installing "cordova-plugin-dialogs" for ios Plugin dependency "cordova-plugin-globalization@1.0.4" already fetched, using that version. Installing "cordova-plugin-globalization" for ios Cross-platform AppRate plugin for Cordova / PhoneGap Installing "cordova-plugin-camera" for ios Plugin dependency "cordova-plugin-compat@1.1.0" already fetched, using that version. Installing "cordova-plugin-compat" for ios Plugin "cordova-plugin-compat" already installed on ios. Making it top-level. Installing "cordova-plugin-console" for ios Installing "cordova-plugin-device" for ios Plugin "cordova-plugin-dialogs" already installed on ios. Making it top-level. Installing "cordova-plugin-file" for ios Plugin dependency "cordova-plugin-compat@1.1.0" already fetched, using that version. Dependent plugin "cordova-plugin-compat" already installed on ios.

Android永久存储位置现在默认为内部".请检查此插件自述文件,以查看您的应用程序是否需要对其config.xml进行任何更改.

The Android Persistent storage location now defaults to "Internal". Please check this plugins README to see if you application needs any changes in its config.xml.

如果这是一个新应用程序,则无需更改.

If this is a new application no changes are required.

如果这是对未指定"AndroidPersistentFileLocation"的现有应用程序的更新,则可能需要添加:

If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add:

  "<preference name="AndroidPersistentFileLocation" value="Compatibility" />"

到config.xml,以便应用程序查找以前存储的文件.

to config.xml in order for the application to find previously stored files.

为iOS安装"cordova-plugin-file-transfer" 使用该版本的插件依赖性"cordova-plugin-file@4.3.0"已被获取. 依赖插件"cordova-plugin-file"已安装在ios上. 插件"cordova-plugin-globalization"已安装在ios上.使它成为顶级. 为iOS安装"cordova-plugin-splashscreen" 为iOS安装"cordova-plugin-statusbar" 为iOS安装"cordova-plugin-whitelist" 为iOS安装"cordova-plugin-x-socialsharing" 为iOS安装"cordova-plugin-x-toast" 为iOS安装"ionic-plugin-keyboard" 为iOS安装"phonegap-plugin-push" 无法安装"phonegap-plugin-push":未定义 错误:/Library/Ruby/Gems/2.0.0/gems/claide-1.0.2/lib/claide/command.rb:439:在`help!'中:[!]您不能以root身份运行CocoaPods. (CLAide :: Help)

Installing "cordova-plugin-file-transfer" for ios Plugin dependency "cordova-plugin-file@4.3.0" already fetched, using that version. Dependent plugin "cordova-plugin-file" already installed on ios. Plugin "cordova-plugin-globalization" already installed on ios. Making it top-level. Installing "cordova-plugin-splashscreen" for ios Installing "cordova-plugin-statusbar" for ios Installing "cordova-plugin-whitelist" for ios Installing "cordova-plugin-x-socialsharing" for ios Installing "cordova-plugin-x-toast" for ios Installing "ionic-plugin-keyboard" for ios Installing "phonegap-plugin-push" for ios Failed to install 'phonegap-plugin-push': undefined Error: /Library/Ruby/Gems/2.0.0/gems/claide-1.0.2/lib/claide/command.rb:439:in `help!': [!] You cannot run CocoaPods as root. (CLAide::Help)

用法:

$ pod COMMAND

  CocoaPods, the Cocoa library package manager.

命令:

+ cache      Manipulate the CocoaPods cache
+ env        Display pod environment
+ init       Generate a Podfile for the current directory
+ install    Install project dependencies according to versions from a
             Podfile.lock
+ ipc        Inter-process communication
+ lib        Develop pods
+ list       List pods
+ outdated   Show outdated project dependencies
+ repo       Manage spec-repositories
+ setup      Setup the CocoaPods environment
+ spec       Manage pod specs
+ update     Update outdated project dependencies and create new Podfile.lock

选项:

--silent     Show nothing
--version    Show the version of the tool
--verbose    Show more debugging information
--no-ansi    Show output without ANSI codes
--help       Show help banner of specified command
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.3.1/lib/cocoapods/command.rb:47:in `run'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-1.3.1/bin/pod:55:in `<top (required)>'
from /usr/local/bin/pod:23:in `load'
from /usr/local/bin/pod:23:in `<main>'

我已经安装了cocoapods并使用sudo和不使用sudo来运行上述命令.

I had installed cocoapods and run the above command with sudo and without sudo.

推荐答案

我已通过使用Firebase插件更改插件phonegap-push解决了该问题,现在它在android和IOS中都可以正常工作.请使用1.22版的cordova-firebase插件.

I had solved the problem by changing the plugin phonegap-push with Firebase plugin and now its working fine in android as well as IOS. Please go with the cordova-firebase plugin version 1.22.

这篇关于离子添加平台iOS在Mac OS Sierra上显示phonegap-plugin-push错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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