任务 ':calculator:compileKonanKotlinArithmeticParserIphone' 执行失败
Execution failed for task ':calculator:compileKonanKotlinArithmeticParserIphone'
好吧,我正在尝试 运行 来自 kotlin-native 存储库的计算器示例。
已执行以下步骤:
要构建和 运行 示例,请执行以下操作:
用Xcode.
打开samples/calculator/calculator.xcodeproj
通过项目导航器打开项目的目标,转到选项卡
'General'。在 'Identity' 部分将包 ID 更改为
反向 DNS 格式的唯一字符串。然后select团队在
'Signing' 节。请参阅 Xcode 。文档以获取更多信息。
现在在 iPhone 与 Xcode 连接的 运行 上构建和 运行 应用程序。
但是当我尝试在 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
谢谢!
我运行陷入了一个很similar/same的问题,Kotlin folks figured out the issue.
cd
到 kotlin-native
项目根目录
- 运行
./gradlew dist crossDist
- 打开 Xcode 和 运行 项目。
好吧,我正在尝试 运行 来自 kotlin-native 存储库的计算器示例。
已执行以下步骤:
要构建和 运行 示例,请执行以下操作:
用Xcode.
打开samples/calculator/calculator.xcodeproj
通过项目导航器打开项目的目标,转到选项卡 'General'。在 'Identity' 部分将包 ID 更改为 反向 DNS 格式的唯一字符串。然后select团队在 'Signing' 节。请参阅 Xcode 。文档以获取更多信息。
现在在 iPhone 与 Xcode 连接的 运行 上构建和 运行 应用程序。
但是当我尝试在 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
谢谢!
我运行陷入了一个很similar/same的问题,Kotlin folks figured out the issue.
cd
到kotlin-native
项目根目录- 运行
./gradlew dist crossDist
- 打开 Xcode 和 运行 项目。