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向けにビルドしたいのですが、Ionic Cloudの一部であるパッケージをチェックしてください。 –