快速构建因“断言isInProgress失败而中止” 我尝试过的环境

问题描述

运行swift build会给我这些错误。

swift-build: /home/build-user/llbuild/lib/Core/BuildEngine.cpp:250: (anonymous namespace)::BuildEngineImpl::TaskInfo *(anonymous namespace)::BuildEngineImpl::RuleInfo::getPendingTaskInfo(): Assertion `isInProgress()' failed.
Aborted (core dumped)

我尝试过的

  • 重新启动窗口。
  • 运行ps -aux | grep swift,但未找到快速过程。
  • 运行swift并在下面运行ps显示。
***   708  0.0  0.1 498876 25472 tty2     Sl   13:21   0:00 /home/***/Swift/swift-5.2.4-RELEASE-ubuntu20.04/usr/bin/lldb --repl=-disable-objc-interop -color-diagnostics
***   713  0.0  0.0 146108  7620 tty2     S    13:21   0:00 /home/***/Swift/swift-5.2.4-RELEASE-ubuntu20.04/usr/bin/lldb-server gdbserver --fd=9 --native-regs --setsid
***   720  0.0  0.0   8404   176 tty2     t    13:21   0:00 /home/***/Swift/swift-5.2.4-RELEASE-ubuntu20.04/usr/bin/repl_swift
  • 下载了Swift 5.2.5,但也无法正常工作。

环境

  • 用于Linux和Ubuntu的Windows子系统
  • Swift版本5.2.4(swift-5.2.4-RELEASE)目标:x86_64-unknown-linux-gnu

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)