Way to force an app to restart?

Is there a way that I can force an app to restart? with 5000 lines of script in my “in game” lua file, I’m not 100% that I’ve eliminated every memory leak on returning from it to the main menu. My main menu loads fast on hardware and since I am saving game data on suspending/quitting the app it seems like a klugey but effective way to get back to my main menu with my memory cleaned up for sure.

Thanks for any advice anyone can offer in regards to this.

You could add  UIApplicationExitsOnSuspend=true to your plist entry in the build.settings file

You could add  UIApplicationExitsOnSuspend=true to your plist entry in the build.settings file