I recently had the exact same problem, with Xcode 14.1 and a Scheme/Configuration called "Debug".
After a day and tweaking, I found out its only related to Xcodes Configuration
& Scheme
name, as soon as I changed it from Debug
to Test
or anything else, the problem disappeared, correctly building necessary architure for the Simulator.
Note: I did have another Configuration/Scheme with debug-like settings which worked flawless, so I knew that in general my Xcode Build Settings
were alright.
Besides that, Xcode 14 is quite buggy, for me not displaying compile errors for currently open files. Since I am on Ventura I cannot use Xcode 13.4.1. A Nightmare!