【问题标题】:Phonegap create build for windows mobile from Mac OSXPhonegap 从 Mac OSX 为 windows mobile 创建构建
【发布时间】:2017-01-28 10:12:57
【问题描述】:

我正在开发 PhoneGap 应用程序。

我的应用已经完成了 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 平台创建构建。

请帮我解决这个问题。

【问题讨论】:

    标签: windows cordova build msbuild phonegap-cli


    【解决方案1】:

    我尝试了许多不同的方法来构建 Windows 平台并对其进行故障排除(在 osx 环境中)。 最终它需要有 Windows 机器以及 Visual Studio。
    请参考这个页面, http://cordova.apache.org/docs/en/latest/guide/platforms/win8/index.html

    【讨论】:

    • 我没有windows系统。由于PhoneGap是跨平台工具,它必须提供任何输出。
    • 我了解您的情况。也许尝试使用 bootcamp 或其他 3rd 方应用程序在您的 osx 中安装 Windows。问题是,即使您可以在支持 Windows 的情况下完成项目,您仍然可能需要 Visual Studio 将应用程序发布到 Windows App Store,因为您不知道应用程序是否会在 Visual Studio 中正确编译/构建.根据我的经验,在插件支持、内容安全等方面存在很多问题,在其他环境中您不会注意到。
    猜你喜欢
    • 1970-01-01
    • 2015-05-28
    • 1970-01-01
    • 1970-01-01
    • 2018-03-18
    • 2013-04-07
    • 2013-01-27
    • 2013-01-25
    • 2014-09-26
    相关资源
    最近更新 更多