Where can I find a comprehensive list of Swift compiler flags with documentation?
I am trying to figure out what options I can set on a per-file basis in Xcode using the "Compiler Flags" field in the Compile Sources build phase:
Ever since Xcode 13, I keep getting build errors that such-and-such file was modified during the build, which is expected since these files are generated by a build script in a prior build phase.
So I would like to disable that particular error on these files. How can I do so?
Or is this just a known bug in Xcode 13?
Check out XcodeBuildSettings.com for a complete reference of every build setting supported for the latest version of Xcode.
But which one of those settings can be used in this field? How do I know if that's a comprehensive list?
Surely there is some official documentation somewhere about this?
Perhaps the omniscient @xwu might know?
I don't know if they are comprehensive, but maybe
swiftc --help-hidden and
swiftc -frontend --help-hidden could help?
Answering my own question: