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? https://gitlab.com/andrewzirkel/HomeworldSDL/blob/xcode11.1-SDL2.9/Mac/SDLMain.m