setup-swift
setup-swift copied to clipboard
MacOS: Dual version of Swift compiler
https://github.com/kassane/CxxInterop-tests/actions/runs/7090390472/job/19297220538#step:4:1
During the setup-swift installation process it is noticed that there is another older version of the Swiftc compiler installed on macos-runner conflicting in the project build through CMake.
https://github.com/kassane/CxxInterop-tests/actions/runs/7090390472/job/19297220538#step:8:114
-- Configuring incomplete, errors occurred!
Bidirectional C++ Interop requires Swift 5.9 or greater. Have 5.7.2
Hmm, it should've switched the selected version over, haven't tried using cmake though 🤔
Is it still causing issues?
Yeah! https://github.com/kassane/CxxInterop-tests/actions/runs/7239698283/job/19721861724#step:8:120
-- The CXX compiler identification is AppleClang 14.0.0.14000029
-- The Swift compiler identification is Apple 5.7.2
Tried add set(CMAKE_Swift_COMPILER_VERSION 5.9) and it didn't work.