I am doing a mac platform layer for a game using the SDL library, and compiling from the command line in a linux style fashion. My build.sh script is as follows:
gcc platform_layer.cpp -w -lSDL2 -std=gnu++11 -framework OpenGL -g
The code compiles and produces an a.out executable that runs.
I was wanting to debug the code in XCode, similar to the way Casey uses visual studio for debugging. I'm not sure how to do this though. I pass -g to the compiler which produces .dsym files (which i think is similar to .pdb files on windows?), however I'm not sure how to tell Xcode that I'm not an app package.
Any help would be greatly appreciated.