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

Option -package-name disappears if you use target settings #6196

Open
super-ultra opened this issue Apr 15, 2024 · 0 comments
Open

Option -package-name disappears if you use target settings #6196

super-ultra opened this issue Apr 15, 2024 · 0 comments
Labels
type:bug Something isn't working

Comments

@super-ultra
Copy link

What happened?

If you set OTHER_SWIFT_FLAGS for target using

let packageSettings = PackageSettings(
    targetSettings: [
        "Logger": SettingsDictionary()
            .merging(["OTHER_SWIFT_FLAGS": .array(flags)])
    ]
)

then -package-name option disappears.

This problem can be solved by moving OTHER_SWIFT_FLAGS settings from targetSettings to baseSettings.

Example project: https://github.com/super-ultra/package-level-example

How do we reproduce it?

  1. Use attached project
  2. Run
tuist install
tuist generate
  1. Option -package-name missed for target Logger

Error log

No error.

macOS version

14.4.1

Tuist version

4.9.0

Xcode version

15.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant