After updating to Xcode 11, a framework project, with an iOS only dependency, has started to fail building from command line.
Initially it failed with:
error: Building for Mac Catalyst requires macOS 10.15 or later. (in target 'X iOS' from project 'X')
Changing SUPPORTS_MACCATALYST to NO it fails with:
xcodebuild: error: Failed to build project X with scheme X iOS.
Reason: The run destination My Mac is not valid for Running the scheme 'X iOS'.
And sure enough My Mac is listed in the possible run destinations.
How can I get this removed?