setup-swift icon indicating copy to clipboard operation
setup-swift copied to clipboard

MacOS: Dual version of Swift compiler

Open kassane opened this issue 2 years ago • 2 comments

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

kassane avatar Dec 08 '23 23:12 kassane

Hmm, it should've switched the selected version over, haven't tried using cmake though 🤔

Is it still causing issues?

fwal avatar Dec 17 '23 15:12 fwal

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.

kassane avatar Dec 17 '23 16:12 kassane