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 3.19.1 is not working on Xcode 16. #623

Open
harryngict opened this issue Sep 20, 2024 · 6 comments
Open

Danger 3.19.1 is not working on Xcode 16. #623

harryngict opened this issue Sep 20, 2024 · 6 comments

Comments

@harryngict
Copy link

harryngict commented Sep 20, 2024

Hi Team,
We are using Danger 3.19.1 on our Bitrise. before XCode 15 that working fine. After we upgrade to XCode 16, Bitrise throw the error:

################### DANGER ######################
Run danger
/var/folders/b8/9zt_tx3s1y37nzh_cs991xyc0000gn/T/danger/9D80CAB8-A906-4735-AD6E-128CA0161196/tmp_dangerfile.swift:2:8: error: no such module 'Danger'
1 | import Foundation
2 | import Danger
| `- error: no such module 'Danger'
3 |
4 | func checkReviewers(
bitbucketCloud: BitBucketCloud) {
ERROR: Dangerfile eval failed at Dangerfile.swift
ERROR: Could not get the results JSON file at /var/folders/b8/9zt_tx3s1y37nzh_cs991xyc0000gn/T/danger/9D80CAB8-A906-4735-AD6E-128CA0161196/danger-response.json
Failing the build, there is 1 fail.

@ialimz
Copy link

ialimz commented Sep 24, 2024

Any updates on this?

@iwb-kevin-hirsch
Copy link

We're also facing the same issue 😢
Would love to see any updates on this!

@icecoffin
Copy link

icecoffin commented Sep 25, 2024

We are experiencing the same issue running Danger-Swift on Ubuntu, so Xcode is not involved. Could it be a Swift 6 issue?

@andr3a88-amk
Copy link

Same experience on Github Actions

@skydivedan
Copy link

We are experiencing the same issue running Danger-Swift on Ubuntu, so Xcode is not involved. Could it be a Swift 6 issue?

I don't see how. The Package. swift that I use for Danger is marked as 5.10. And I don't have Swift 6 enabled anywhere in my project.

@icecoffin
Copy link

I don't see how. The Package. swift that I use for Danger is marked as 5.10. And I don't have Swift 6 enabled anywhere in my project.

The swift-tools-version in Package.swift defines the minimum version of Swift tools required to build the package. I was referring to the Swift 6 toolchain, not the Swift 6 language - apologies for the confusion. If the system only has Swift 6 toolchain installed (which seems to be the case with the Ubuntu runners), it will be used to build the package.

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

6 participants