SDL app not opening on outside of Xcode on OSX

I’m working on an app and it will launch and play fine in Xcode but will not launch by double clicking on the app bundle. Can someone take a quick look at my SDLMain file and see if anything jumps out?

Turns out the app wasn’t using that file and the main was in a different location. The issue with it not launching from double click was it not finding data files. When launched from xcode the working directory was defined as the compiled apps location. When launched by double clicking it was the user’s home folder. I changed that to the resources folder and put the assets there.