It seems like with Swift files the compiler flags that are added via the Build Phases pane on a per file basis are simply ignored.
If say I add a nonsensical flag to the Swift file in question, everything builds fine.
Adding the same nonsensical gibberish to say an Objective-C file in the pane, and then I get the expected "Unknown argument: " compiler error.
Is this expected, is there no way to add specific compiler flags to individual Swift files? In particular, I would like to add the new deprecation warning suppression flags to a specific file in my framework as documented by this Swift Proposal...
https://github.com/swiftlang/swift-evolution/blob/main/proposals/0443-warning-control-flags.md
Topic:
Programming Languages
SubTopic:
Swift
Tags: