Login item can't doesn't write file in the same group container.

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.

To distribute with TestFlight your app must be sandboxed. A sandboxed app must authorise every app group it uses by claiming the com.apple.security.application-groups entitlement. For this to work, both your app and the login item must claim the entitlement.

As a first step in debugging this, I recommend that you log the result of -containerURLForSecurityApplicationGroupIdentifier: in both your app and your login item. Do this using the system log so that you can monitor the result in your TestFlight build. See Your Friend the System Log for detailed advice on that topic.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Login item can't doesn't write file in the same group container.
 
 
Q