danger / swift

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

Xcode 14.3 / Swift 5.8 isn't supported #581

Closed oronbz closed 1 year ago

oronbz commented 1 year ago

After installing danger-swift from homebrew via: brew install danger/tap/danger-swift and running: danger-swift ci

I'm getting an error: /var/folders/xq/sfn_fz953jb36ptp2g68wc2r0000gn/T/danger/23DCD1B6-C155-4C21-AA12-07C23FD17199/_tmp_dangerfile.swift:1:8: error: compiled module was created by a different version of the compiler; rebuild 'Danger' and try again: /usr/local/lib/danger/Danger.swiftmodule

Xcode 14.3 / Swift 5.8

Works perfectly on Xcode 14.2 / Swift 5.7 environment

f-meloni commented 1 year ago

Did you install it with the new Xcode selected? Brew compiles danger with your Xcode, so if you had the old Xcode selected then it was compiled from that Xcode and it fails when you switch to a different version.

oronbz commented 1 year ago

It's running from CI (Bitrise) and the stack is already configured with Xcode 14.3 only.