I just upgraded both of my Macbook Pro M2 to MacOS Ventura 13.0 and Xcode to Version 14.1 (14B47b)
After updating my xcode, my xcode is always stuck on "launching app" and simulator is on blackscreen 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 code and re-run the code, Xcode is now stuck on "launching app" and simulator is on blackscreen
- To run the code again, I would have to go back to step 1 again to run the app on simulator.
Does anyone have an idea on how can I fix this.
I tried removing derived data, changing simulators but didn't fixed the issue.
UPD: I know this is not a solution, but just paste this command to restart simulator automatically. Add Run Script at Build Phase section and enter command "killall Simulator": : Run Script command
We will wait fix this problem from Apple in a new version, but for now you could manually restart Simulator or make it automatically through Run Script.
And also I noticed that without restart app runs with black background and you can even swipe to Home Screen.