Build error domain=com.apple.CoreSimulator.SimError, code=405 — Solved

When building on iOS 15 Device connected to Xcode 13. I get the error

error Failed to launch the app on simulator, An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=405): Unable to lookup in current state: Shutdown.

Console: