2016-09-20 33 views
2

我正在研究PhoneGap應用程序。Phonegap從Mac OSX爲Windows Mobile創建構建

我已經完成iOS & Android平臺爲我的應用程序。

我確實使用XCode & Android Studio爲兩者創建構建。

但我正在努力與Windows平臺創建應用程序的Windows。

我已經通過終端嘗試下面的事情:

phonegap platform remove windows 
phonegap local build windows 
[warning] The command `phonegap local <command>` has been DEPRECATED. 
[warning] The command has been delegated to `phonegap <command>`. 
[warning] The command `phonegap local <command>` will soon be removed. 
[phonegap] executing 'cordova platform add --save windows' ... 
[phonegap] completed 'cordova platform add --save windows' 
[phonegap] executing 'cordova build windows ' ... 
The following navigation rule had an invalid URI scheme and is ignored: "*". 


Error: No valid MSBuild was detected for the selected target. 


phonegap remote build windows 
[phonegap] compressing the app... 
[phonegap] uploading the app... 
    [error] {"error":"app 2270357 not found"} 
    [error] 

所以,我無法在本地或通過遠程的Windows平臺創建構建。

請幫助我。

回答

1

我已經嘗試了許多不同的方法來構建Windows平臺並對其進行故障排除(在osx環境中)。它最終需要Windows機器以及Visual Studio。
請參閱本頁, http://cordova.apache.org/docs/en/latest/guide/platforms/win8/index.html

+0

我沒有windows系統。由於PhoneGap是跨平臺的工具,它必須提供任何與此相關的東西。 – Ayra

+0

我瞭解你的情況。也許嘗試使用bootcamp或其他第三方應用程序在您的osx中安裝Windows。 問題是,即使您可以使用Windows支持來完成您的項目,仍然可能需要Visual Studio將應用程序發佈到Windows App Store,因爲您不知道該應用程序是否將在Visual中正確編譯/構建工作室。 根據我的經驗,插件支持,內容安全性等問題很多,您在其他環境中不會注意到這些問題。 – Hoon