Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

danger-swift not running with swift 5.5 on xcode 13 beta #449

Closed
raul-air opened this issue Jul 2, 2021 · 6 comments
Closed

danger-swift not running with swift 5.5 on xcode 13 beta #449

raul-air opened this issue Jul 2, 2021 · 6 comments

Comments

@raul-air
Copy link

raul-air commented Jul 2, 2021

I'm facing problems to run danger in the new Xcode 13 beta. Seems that it does not have support for swift 5.5. Any workaround for it or any idea when an update to handle this version will be released ?

/var/folders/tr/h8qyrth12qb3mctcmj7m7hjr0000gn/T/_tmp_dangerfile.swift:1:8: error: module compiled with Swift 5.4.2 cannot be imported by the Swift 5.5 compiler: /usr/local/lib/danger/Danger.swiftmodule
import Danger
       ^

ERROR: Dangerfile eval failed at Dangerfile.swift
ERROR: Could not get the results JSON file at /var/folders/tr/h8qyrth12qb3mctcmj7m7hjr0000gn/T/danger-response.json
@orta
Copy link
Member

orta commented Jul 2, 2021

I bet this is something to do with your developer dir paths because there's two different Xcode's building your Danger Swift

@raul-air
Copy link
Author

raul-air commented Jul 2, 2021

I don't think so. Currently I have more than one Xcode installed in my machine, but even when I try to run in the CI, the DangerFile works for Xcode 12 stack, but fails for Xcode 13 beta one

@f-meloni
Copy link
Member

f-meloni commented Jul 3, 2021

Did you install Danger with brew?
If so you would need to re install it probably, because was compiled with the old version of Xcode

@AvdLee
Copy link
Contributor

AvdLee commented Oct 12, 2021

I'm running into similar issues myself. I'm unable to pinpoint it yet, but something is off with Xcode 13 and Swift 5.5

@SvenMuc
Copy link

SvenMuc commented Jan 13, 2022

I updated to Xcode 13.2.1 and faced similar issues. I could resolve it by reinstalling danger-swift.

brew reinstall danger-swift

@AvdLee
Copy link
Contributor

AvdLee commented Jan 14, 2022

@f-meloni for me, #475 solved it. Closing therefore accordingly!

@AvdLee AvdLee closed this as completed Jan 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants