Supplying the --arch options does not work on Linux, as there are no fat binaries there. swift build wants to invoke xcode-select when these options are given, which – of course – does not exist on Linux, hence the build fails.
I suggest wrapping this in a an os-specific if clause.
Supplying the
--arch
options does not work on Linux, as there are no fat binaries there.swift build
wants to invokexcode-select
when these options are given, which – of course – does not exist on Linux, hence the build fails.I suggest wrapping this in a an os-specific
if
clause.