iOS Simulator Crash on open project

Bit of odd one
2025.3721.

When we open Solar2d, then open our project from the recent screen on our Mac Mini. Most attempts it will appear to crash. We see the project console log flashing through usually start up debug prints.
But then whole app appear goes away.
Simulator opens fine in windows.

Repeated attempts to open the project we then eventually get a attempt were it opens fine. Appears to work as normal and we do a device build ( android). Test android device runs fine.

So guess there appears to be some sort of race condition in my app startup that sometimes killing the iOS sim. But not sure where to look for logs / indicators on what may be causing that?

Any guidance / pointers welcome.

I have had similar issue for a while now. Simulator closes are certain error(s) I had in my code such as ‘image does not exist.’ such as ‘ball.png’. The simulator all shuts down as soon as I try to run the code. Once I fix the error, app starts up and does not shut down the simulator.

In the past, if app had an error it would ‘not’ shut down simulator and the error would be noted in the simulator output panel.

I have Mac mini M2 pro Sequoia 15.5, Solar2d version 3720, and I am not sure when it started this problem … but the work around I have to do this;
I run QuickTime and screen record of the simulator and output window to catch the screen shutting down … see what simulator lists as error I can see it in the video and fix it.

Hope that helps in someway.

The simulator crashing so you can’t see what caused the error is super annoying. Here’s how to route the simulator console into the Terminal so you don’t have to use a QuickTime movie to find out what went wrong:

disable Solar2d console so errors show up in terminal:

defaults write com.coronalabs.Corona_Simulator no-console YES

launch from the command line (use your build number if not 3721):

/Applications/Corona-3721/Corona\ Simulator.app/Contents/MacOS/Corona\ Simulator

re-enable Solar2d console when done:

defaults delete com.coronalabs.Corona_Simulator no-console

Super helpful … thanks Colin! I wasn’t even going to post the issue, even though I have dealt with it quite a while now. So your solution will save me a bunch of time.

I agree, it is/was super -annoying !!!.

I wasn’t going to even post the issue on the forum, so not to bother anyone. I just kept using my work around.

I posted it, hoping it would be of at least be some help to anto’s post.

Thanks again for your solution!

1 Like