I have a main app written in electron and a login item.
When the system reboots, the login item launches the application and writes a flag to the group containers. The main app launches and reads this flag. It works perfectly for the debug version but doesn't work when the application is installed from the test flight.
I tried this solution https://stackoverflow.com/a/12230806/6367619 but it didn't help.