2017-12-07 13 views
3

まあ、kotlin-nativeリポジトリからCalculatorサンプルを実行しようとしています。タスク 'calculator:compileKonanKotlinArithmeticParserIphone'の実行に失敗しました。

は、次の手順に従っ:Xcodeの持つ

  1. オープンサンプル/電卓/ calculator.xcodeproj:

    サンプルをビルドして実行するには以下を実行します。

  2. プロジェクトナビゲータを使用してプロジェクトのターゲットを開き、「一般」タブ に移動します。 [ID]セクションで、バンドルIDを逆DNS形式の 一意の文字列に変更します。次に、[署名]セクションの でチームを選択します。 Xcodeを参照してください。詳細はドキュメントを参照してください。

  3. Xcodeで接続されたiPhoneでアプリケーションをビルドして実行します。

しかし、私はXcodeでアプリケーションをビルドしようとすると、私は次のエラーを取得し、それへのログは以下の通りです:

... ... ...

The target is not enabled on the current host: linux . 
Target 'linux' of artifact 'libgit2' is not supported on the current host . 
The target is not enabled on the current host: linux . 
The target is not enabled on the current host: linux . 
The target is not enabled on the current host: linux . 
The target is not enabled on the current host: linux 
Target 'linux' of artifact 'libcurl' is not supported on the current host . 
The target is not enabled on the current host: linux . 
The target is not enabled on the current host: linux 
The target is not enabled on the current host: linux 
The target is not enabled on the current host: linux 
The target is not enabled on the current host: linux 
The target is not enabled on the current host: raspberrypi 
Target 'linux' of artifact 'sdl' is not supported on the current host 
Target 'raspberrypi' of artifact 'sdl' is not supported on the current host 
The target is not enabled on the current host: linux 
The target is not enabled on the current host: raspberrypi 
Target 'linux' of artifact 'tetris' is not supported on the current host 
Target 'raspberrypi' of artifact 'tetris' is not supported on the current host 
The target is not enabled on the current host: linux 
The target is not enabled on the current host: mingw 
Target 'linux' of artifact 'ffmpeg' is not supported on the current host 
Target 'mingw' of artifact 'ffmpeg' is not supported on the current host 
The target is not enabled on the current host: linux 
The target is not enabled on the current host: mingw 
Target 'linux' of artifact 'sdl' is not supported on the current host 
Target 'mingw' of artifact 'sdl' is not supported on the current host 
The target is not enabled on the current host: linux 
The target is not enabled on the current host: mingw 
Target 'linux' of artifact 'Player' is not supported on the current host 
Target 'mingw' of artifact 'Player' is not supported on the current host 
The target is not enabled on the current host: mingw 
:calculator:checkKonanCompiler 
:calculator:compileKonanKotlinArithmeticParserIphone FAILED 

FAILURE: Build failed with an exception. 

What went wrong: 
Execution failed for task ':calculator:compileKonanKotlinArithmeticParserIphone'. 
Classpath of the tool is empty: konanc 
Probably the 'konan.home' project property contains an incorrect path. 
Please change it to the compiler root directory and rerun the build. 
Try: 
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. 

Get more help at https://help.gradle.org 

BUILD FAILED in 8s 
2 actionable tasks: 2 executed 
Command /bin/sh failed with exit code 1 

ありがとうございました!

答えて

0

非常によく似た問題が起きましたが、Kotlin folks figured out the issueです。

  1. cd実行./gradlew dist crossDist
  2. オープンXcodeの
  3. kotlin-nativeプロジェクトのルートに、プロジェクトを実行します。

calculator demo running on an iPhone 8 Plus

関連する問題