I am encountering the same issue and changing the build setting called "Build Active Architectures Only" to "Yes" fixes the issue BUT I am now faced with an Xcode Archive that is a "Generic Xcode Archive" instead of a MacOS archive that I can have notarized by Apple or submitted to the App Store. Any ideas on how to work through that? Were you able to get your app into the App Store after making these changes?