When Opening Application Build, Opens for a Split Second then Closes Before the Window of the Application Even Pops Up (Mac OS Sierra)

Hi, when I built my program into an application. Yet when I open it, the application opens for like 1 second then closes. The application pops up in the dock at the bottom of my screen then closes immediately after it pops up.
I tested it on a windows build (.exe) and it works fine (I have an application that allows me to open .exe files). I think I have an idea of what the problem is. I think that since, the Mac I am using is a Mac OS, and not a Mac OS X, it won’t open. I think that because in the build settings the option to build for Mac says “Mac OS X” and not “Mac OS”.

Any help would be appreciated!

Sounds like a permissions issue… one of the really annoying things OS X is known for. I would try chmod 755 or 777 on the .app and see if that fixes it closing on you.