This solved my issue: https://stackoverflow.com/a/66334661/879365
The deal is that specifying platforms does not actually prevent Swift Build from trying to compile them, anyway, so we need to bracket platform-specific code in macros.
Yeah, it sucks. It's a kludge.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: