I have made a macOS app using pyinstaller... It works but when opening the app, it opens then closes immediately and then reopens 30 seconds later.
To create this app