Standalone applications are created to run outside of Maya.
You will need to set additional environment variables in macOS and Linux to run any standalone applications you create.