Can't build project while defining swift settings for a package and configuration only (wrong SWIFT_ACTIVE_COMPILATION_CONDITIONS
)
#6091
Labels
type:bug
Something isn't working
What happened?
Hello
I'm currently upgrading from tuist version 3.39.0 to 4.6.0 and noticed that swift settings for a package are not considered when they're only defined for configurations.
In the attached workspace, there's a project which has a dependency to a local package. Within this package, there's a class that only gets provided when the
DEVELOPMENT
compiler flag is enabled.In the local package, there are swift settings defined for the compiler flag when the configuration is
.debug
:Actual Result
The workspace doesn't compile.
Expected Result
The workspace compiles without any errors.
Findings
It compiles as as soon as I specify platforms and change the swift settings for the core package to this:
I also found the issue #5642 which might be related.
How do we reproduce it?
tuist install
&tuist generate
Error log
macOS version
14.4
Tuist version
4.6.0
Xcode version
15.3.0
The text was updated successfully, but these errors were encountered: