首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >任务':calculator:compileKonanKotlinArithmeticParserIphone‘执行失败

任务':calculator:compileKonanKotlinArithmeticParserIphone‘执行失败
EN

Stack Overflow用户
提问于 2017-12-07 07:27:03
回答 1查看 277关注 0票数 3

嗯,我试着从科特林本地回购公司运行计算器样本。

遵循以下步骤:

要构建和运行示例,请执行以下操作:

  1. 使用Xcode打开示例/计算器/计算器。
  2. 通过项目导航器打开项目的目标,转到选项卡“General”。在“标识”部分中,将包ID更改为反向DNS格式的唯一字符串。然后在“签名”部分选择团队。见Xcode。获得更多信息的文档。
  3. 现在,使用Xcode在连接的iPhone上构建和运行应用程序。

但是,当我试图在Xcode中构建应用程序时,我会得到以下错误,并且日志如下所示:

...

代码语言:javascript
复制
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

谢谢!

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-12-23 06:58:36

我遇到了一个非常相似/同样的问题,以及科特林人想出了这个问题

  1. cdkotlin-native项目根目录
  2. 运行./gradlew dist crossDist
  3. 打开Xcode并运行项目。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47689754

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档