You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to add some build setting for my local swift package through PackageSettings.
But I found baseSettings and targetSettings cannot work as expected. Check below Package.swift.
Some build settings are missing in generated project and some are overwritten.
Tuist/Package.swift
// swift-tools-version: 5.9
import PackageDescription
#if TUIST
import ProjectDescription
letpackageSettings=PackageSettings(
baseSettings:.settings(
base:["SWIFT_ACTIVE_COMPILATION_CONDITIONS":["$(inherited)","BASE_SETTINGS_A",// ❌ missing],"OTHER_SWIFT_FLAGS":["$(inherited)","-D","BASE_SETTINGS_B",// ❌ missing],"FOO":"FOO",// ✅ works as expected]),
targetSettings:["LocalPackageTarget":["SWIFT_ACTIVE_COMPILATION_CONDITIONS":["$(inherited)","TARGET_SETTINGS_A",// 🤔 works, but SWIFT_PACKAGE is missing, have to add back manually],"OTHER_SWIFT_FLAGS":["$(inherited)","-D","TARGET_SETTINGS_B",// ✅ works as expected],"BAR":"BAR",// ✅ works as expected],])#endifletpackage=Package(
name:"Demo",
dependencies:[.package(url:"https://github.com/Alamofire/Alamofire", from:"5.9.1"),.package(path:"LocalPackagePath"),])
How do we reproduce it?
mkdir tuist_issue_project && cd tuist_issue_project
tuist init
edit Tuist/Package.swift to the above code
tuist install && tuist generate
check the build settings from generated project
Error log
No error messages, just unexpected behaviors.
macOS version
13.6.6
Tuist version
4.11.0
Xcode version
15.2
The text was updated successfully, but these errors were encountered:
What happened?
I want to add some build setting for my local swift package through
PackageSettings
.But I found
baseSettings
andtargetSettings
cannot work as expected. Check belowPackage.swift
.Some build settings are missing in generated project and some are overwritten.
Tuist/Package.swift
How do we reproduce it?
Tuist/Package.swift
to the above codeError log
No error messages, just unexpected behaviors.
macOS version
13.6.6
Tuist version
4.11.0
Xcode version
15.2
The text was updated successfully, but these errors were encountered: