Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simulator get blanked when running app in debug mode second time in 14.1 and 14.2 [closed]

Tags:

xcode

ios

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.

  1. Close the simulator
  2. Build and run code
  3. Here, xcode runs the code perfectly.
  4. After I made changes in code and re-run the code, Xcode is now stuck on "launching app" and simulator is on blackscreen
  5. 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.

like image 333
forestvine Avatar asked Sep 01 '25 17:09

forestvine


1 Answers

This is bug with the latest version. you need to quit the simulator and run the project again. You can always file a bug with apple as @matt commented.

like image 200
Vikas Saini Avatar answered Sep 04 '25 11:09

Vikas Saini