After updating my Xcode, my Xcode is always stuck on "launching app" and the simulator is on a black screen every 2nd time I run the code.
Steps to duplicate.
Close the simulator
Build and run code
Here, Xcode runs the code perfectly.
After I made changes in the code and re-ran the code, Xcode is now stuck on "launching app" and the simulator is on a black screen
To rerun the code, I would have to go back to step 1 again to run the app on the simulator.
Does anyone have an idea of how I can fix this? I tried removing derived data, and changing simulators, doing sudo xcrun simctl erase all in the terminal but didn't fix the issue.