まあ、kotlin-nativeリポジトリからCalculatorサンプルを実行しようとしています。タスク 'calculator:compileKonanKotlinArithmeticParserIphone'の実行に失敗しました。
は、次の手順に従っ:Xcodeの持つ
オープンサンプル/電卓/ calculator.xcodeproj:
サンプルをビルドして実行するには以下を実行します。
プロジェクトナビゲータを使用してプロジェクトのターゲットを開き、「一般」タブ に移動します。 [ID]セクションで、バンドルIDを逆DNS形式の 一意の文字列に変更します。次に、[署名]セクションの でチームを選択します。 Xcodeを参照してください。詳細はドキュメントを参照してください。
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
ありがとうございました!