I'm in the process of developing a game written in C using SDL, and while I do all of my development on Windows/Linux machines would like to make it available on Mac as well. The code is fully platform agnostic, and I have successfully run it on a loaned Mac after compiling it using Xcode, but have been unable to get the executable file to run except when running it through the terminal (by opening the terminal,
cd-ing through a bunch of files, then typing the appropriate command). Needless to say this is extremely user-unfriendly, and I would prefer the game run when the executable file is clicked on normally, but doing so instead opens a terminal window that immediately exits the program. I tried making a script file that does nothing but run the program, but even when placed in the same folder as the program it gives a 'no such directory' error. It likewise runs fine when run directly from the command line.
I've tried changing file permissions, they don't seem to affect anything. I'm somewhat familiar with Linux, but not very familiar with Macs and do not own one (I have one on loan that I'm using to port the game) and am limited in what I can do as a result of that. I am not currently interested in going through the process of becoming a registered Mac developer.