danger / swift

⚠️ Stop saying "you forgot to …" in code review
https://danger.systems/swift/
MIT License
1.04k stars 135 forks source link

Running Danger on Bitrise fails with `module compiled with Swift 5.7.1 cannot be imported by the Swift 5.6.1 compiler` #571

Closed alessandrodn closed 1 year ago

alessandrodn commented 1 year ago

Hi, Since Jan 31, I have started to get an error when running Danger on Bitrise on a Monterey VM, with Xcode 13.. Specifically, I receive the following error:

+ brew install danger/tap/danger-swift
Warning: danger/tap/danger-swift 3.15.0 is already installed and up-to-date.
To reinstall 3.15.0, run:
  brew reinstall danger-swift
+ danger-swift ci --verbose
/var/folders/9l/1ysg9vq51p37q0lgksxhdb9r0000gn/T/danger/46D9AB1B-2AD1-4BCE-A81D-C76FB0670DFF/_tmp_dangerfile.swift:1:8: error: module compiled with Swift 5.7.1 cannot be imported by the Swift 5.6.1 compiler: /usr/local/lib/danger/Danger.swiftmodule
import Danger
       ^

According to the documentation, the latest version requires Swift 5.5, and the VM comes with Xcode 13, i.e. Swift 5.6. Did something change recently that's not documented?

Thanks for any input.

alessandrodn commented 1 year ago

Closing this as it was a fault on Bitrise side 😊