Sdk contents prevents upload to Apple

when I try to upload a new version of one of our apps to the apple store for developers
I receive a validation error

can you provide the DWARF file as listed?

turns out this is an XCODE build problem, you can change to the legacy build type
and this issue goes away

in Xcode,
File, workspace settings
advanced
legacy