Unity Game Crashes?

Hi everyone, I’ve been working for a while with a friend witha unity game. Today I compiled the game for mac. I tryed to open it, but it doesn’t work. I thinked it was my project, so I asked my friend to send me an executable for mac, but it doesn’t work too! If he try to open it with the windows build, it works fine. But everytime I open the game it gives me this “error”:
The last time you opened Ternion, it unexpectedly quit while reopening windows. Do you want to reopen this windows again?
If you choose not to reopen windows, you may have to open and position the windows yourself.

Don’t Reopen - Reopen

I try to press Reopen but, it doesn’t work, and after a few seconds, the game crashes.

If you want to open the game on mac, check that the file’s extension is .app

if it’s not .app - then you’ve compiled something not intended for mac

People at KSP where having the same problem http://forum.kerbalspaceprogram.com/archive/index.php/t-25627.html

You can fix this by going to your username’s folder, then to Library, then to Saved Application State. Find the folder called unity.Squad.Kerbal Space Program.savedState and delete it. The Library folder may be hidden. If so, you will need to open terminal and enter “chflags nohidden ~/Library”.

Obviously, it’ll be unity…savedState instead.

Also lol, at 2 answers above. To be fair, it’s a totally ridiculous and worse than non descript error message on OSX’s part. Also, you should comment instead of answer ebloox. I know the comment button is sorta hidden but it’s there somewhere (I actually don’t know where it is lol).

Hi @nottelling , @eBloox , Voila! I’ve just solved this problem by deleting all Unity-related files inside ~Library/Caches folder on my Mac!