I would like to generate a project with the none
Swift optimization level. This was straightforward to do for my targets, but I don’t see a blanket way to apply this to SPM packages for which Tuist creates Xcode projects. I can set a default setting for the projects, but it gets overridden by the target setting. I can set a target setting, but that has to be done individually for each target. Is this just not supported currently?
Hey @hiltonc
SWIFT_OPTIMIZATION_LEVEL
is an essential setting, which is why it’s being applied in the first place.
I would have expected the following to work:
#if TUIST
import ProjectDescription
let packageSettings = PackageSettings(
baseSettings: .settings(
defaultSettings: .recommended(excluding: ["SWIFT_OPTIMIZATION_LEVEL"])
)
)
#endif
But it doesn’t seem to. In that case, I would consider this a bug. Could you create an issue with a reproducible sample?