2016-09-14 5 views
3

問題:

  • 私はコルドバ・プラグインMBF(MBFバージョン8.0.0を追加するまで、私は、私は窓10のために構築することができionic2でアプリを持っています)。
  • ビルドに失敗し、引数を追加するように頼んだ--archs = x64
  • ビルドは失敗し続けますが、このエラーは "msbuild.exe:コマンドが終了コード1で失敗しました"

は私がしようと何:

  • は、それがエラーをスローし、それをだことを検証するために、空のプロジェクトにプラグインを追加し、私は、プラグインなしで構築できることを検証するために、新しいプロジェクトを開始し
  • は私のセットアップがたくさん

マイセットアップノードv5.12
  • 叫びで
  • 正しいビルドであることを確認するために最初からWindowsを再インストールします。

    • コルドバCLI:6.3.1
    • イオンFrameworkのバージョン:2.0.0-beta.11
    • イオンCLIバージョン:2.0.0-beta.37
    • イオンアプリのLibのバージョン:2.0.0-beta.20
    • OS:ノードのバージョン:v6.5.0ビルドionic2アプリは失敗

    • のWindows 10バージョン1511; 10586.545

    • のVisual Studio 2015地域コミュニティ版と:
      • マイクロソフトのWeb開発ツール
      • ユニバーサル窓のアプリ開発ツール
        • ツール(1.4.1)およびWindows 10 SDK(10.0.14393)
        • windows 10 SDK(10.0.10586)
        • windows 10 SDK(10.0.10240)
      • 窓8.1のWindows Phone 8.0/8.1ツール
        • ツールとWindows SDKのWindows Phone 8.1

      完全な手順については、

  • エミュレータ:

    スタートクリーンなプロジェクト:

    ionic start testBuildWin10 -v2 
    cd testBuildWin10 
    

    セットアップ設定。MFPを追加するとき、この段階でwindows10の代わりに、窓8.1

    <platform name="windows"> 
        <preference name="windows-target-version" value="10.0" /> 
    </platform> 
    

    をターゲットアプリの作品、それにXMLは失敗しました:

    cordova plugin add cordova-plugin-mfp 
    cordova prepare 
    ionic run windows 
    

    エラーは、引数--archs = x64の

    を追加するために私に尋ねますその後、

    Running command: "C:\Program Files\nodejs\node.exe" C:\Users\Eric\Desktop\testBuildWin10-2\hooks\after_prepare\010_add_platform_class.js C:\Users\Eric\Desktop\testBuildWin10-2

    add to body class: platform-windows

    Building project: C:\Users\Eric\Desktop\testBuildWin10-2\platforms\windows\CordovaApp.Windows10.jsproj

    Configuration : debug 
        Platform  : anycpu 
    

    C:\Users\Eric\Desktop\testBuildWin10-2\platforms\windows\CordovaApp.Windows10.jsproj(83,9): error : The following component requires .NET Native compilation which is not available when targeting 'Windows10' and 'AnyCPU'. Consider changing the targeted processor architecture to one of the following: 'x86, x64, ARM' (if you are using command line this could be done by adding '--archs' parameter, for example: 'cordova build windows --archs=x64'). C:\Users\Eric\Desktop\testBuildWin10-2\platforms\windows\plugins\cordova-plugin-globalization\GlobalizationProxy.winmd

    Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe: Command failed with exit code 1

    私はイオンの実行--archsを実行= x64の

    C:\Users\Eric\Desktop\testBuildWin10-2\platforms\windows\CordovaApp.Windows10.jsproj(83,9): error : The following component requires .NET Native compilation which is not available when targeting 'Windows10' and 'AnyCPU'. Please consider changing the targeted processor architecture to one of the following: 'x86, x64, ARM' (if you are using command line this could be done by adding '--archs' parameter, for example: 'cordova build windows --archs=x64'). C:\Users\Eric\Desktop\testBuildWin10-2\platforms\windows\plugins\cordova-plugin-globalization\GlobalizationProxy.winmd

    Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe: Command failed with exit code 1

  • 答えて

    3

    アーキテクチャ固有のDLLを持つMobilefirst Windows SDKパッケージ。したがってionic run windowsコマンドはAnyCPUで実行されるので失敗します。

    プラットフォーム固有のコマンドを実行するには、--archs=x64の前に--セパレータを追加する必要があります。

    コマンドionic run windows -- --archs=x64で試してみてください。問題が解決することを願っています。

    +0

    outch: '(あなたの答えはありがたいですか? – EricD

    +0

    @EricD次のコマンドで同じアプリケーションをテストできますか?ionic run windows --archs = x64' –

    関連する問題