swift-toolchain-ios icon indicating copy to clipboard operation
swift-toolchain-ios copied to clipboard

/usr/bin/swift-build missing

Open zx500xl opened this issue 2 years ago • 0 comments

I installed toolchain from Cydia (v 4.0.3-1) When I run swift build --help I get: error: unable to invoke subcommand: /usr/bin/swift-build (No such file or directory)

When I try to build swift tweak using theos I get the same error with additional message:

> Making all for tweak testtweak…
==> Building Swift support tools…
error: unable to invoke subcommand: /usr/bin/swift-build (No such file or directory)
Failed to build swift-support: command failed: SPM_THEOS_BUILD=1 swift build -c release --package-path /opt/theos/vendor/swift-support --build-path /opt/theos/vendor/swift-support/.theos_build
make[2]: *** [/opt/theos/makefiles/instance/rules.mk:197: internal-testtweak-swift-support] Error 2
make[1]: *** [/opt/theos/makefiles/instance/rules.mk:62: before-testtweak-all] Error 2
make: *** [/opt/theos/makefiles/master/rules.mk:163: testtweak.all.tweak.variables] Error 2

Does it contain swift-build binary?

zx500xl avatar Jan 12 '23 17:01 zx500xl