0
我正在iOS和Android的Ionic開發應用程序,並將兩個平臺都添加到該項目中。 我在添加推送插件時收到以下內容。它安裝於Android,但不適用於iOS的在windows上安裝離子推送插件(適用於iOS)時出錯
ionic cordova plugin add phonegap-plugin-push --save
> cordova plugin add phonegap-plugin-push --save
× Running command - failed!
[ERROR] Cordova encountered an error.
You may get more insight by running the Cordova command above directly.
[ERROR] An error occurred while running cordova plugin add phonegap-plugin-push --save (exit code 1):
Installing "phonegap-plugin-push" for android
Subproject Path: CordovaLib
Installing "phonegap-plugin-push" for ios
Failed to install 'phonegap-plugin-push': undefined
Error: WARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
Consider adding the following to ~/.profile:
export LANG=en_US.UTF-8
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/claide-1.0.2/lib/claide/command.rb:439:in `help!': [!] You cannot run
CocoaPods as root. (CLAide::Help)
這裏是離子信息
PS D:\scripturi\Ionic\dangle> ionic info
@ionic/cli-plugin-cordova : 1.6.2
@ionic/cli-plugin-ionic-angular : 1.4.1
@ionic/cli-utils : 1.7.0
ionic (Ionic CLI) : 3.7.0
global packages:
Cordova CLI : 7.0.1
local packages:
@ionic/app-scripts : 2.1.3
Cordova Platforms : android 6.2.3 ios 4.4.0
Ionic Framework : ionic-angular 3.6.0
System:
Node : v7.2.1
OS : Windows 10
npm : 3.10.10
試圖消除平臺和添加他們回來。 任何建議如何解決這個問題?
是否可以在Windows上開發mac? – SergioEscudero
理論上是,[https://ionicframework.com/docs/developer-resources/platform-setup/windows-setup.html](https://ionicframework.com/docs/developer-resources/platform-setup/windows -setup.html) 「iOS SDK不能在Windows上運行,所以在這裏沒有任何事情要做,但是仍然希望爲iOS構建,請查看Package,它是Ionic Cloud的一部分。」 –