Xcode Build for Simulator Succeeds But Build Is Just Black Screen

Everything is perfectly fine (e.g Firebase distribution, Archiving, AppStoreConnect distribution, and whatnot).

I have to add an extra step Xcode Build for Simulator to extract the .app artifact for maestro.

It succeeds and .app is generated, but when I download it and drag to my Xcode/iOS simulator, it’s just a black screen and crashes after a few seconds.

And when you run the app through Xcode to a simulator, and extract the .app file from the simulator files, and run it to other simulator, it works.

A solution like this one fails the project compilation.