-
Notifications
You must be signed in to change notification settings - Fork 94
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
SWIFT_VERSION breaks Carthage build #145
Comments
I don't think If I run
...which is set by
|
But then I don't really get how I was getting the error mentioned above 🤔... And that's unfortunate, because it would actually be practical to use |
Who / what sets the |
The Xcode build configuration
If I understand correctly, Carthage is an Xcode tool which uses the Xcode build system. swiftenv manages the swift version for the
The end user usually. Setting the |
Not sure where that is going, and I stopped using swiftenv because it doesn't seem to apply to Carthage (anymore?). Thanks for the help! |
I am not completely sure, but it seems to me that Xcode sets
SWIFT_VERSION
in a way that is incompatible with swiftenv.Say I have Swift 4.2.1 installed on my system, and I don't have Swift 4.2. Xcode doesn't care, and calls it
4.2
. And it setsSWIFT_VERSION = "4.2"
.Now, swiftenv reads
SWIFT_VERSION
(that apparently overrides.swiftenv
) and tries to run with Swift 4.2 instead of 4.2.1.It results in the following error:
More specifically, this means that I can build manually from Xcode, but Carthage fails to build my project. Like if Carthage was using swiftenv, but Xcode didn't care and went directly to its own Swift binary.
Uninstalling swiftenv fixed my issue.
Would there be a way to somehow improve this behavior?
The text was updated successfully, but these errors were encountered: