My QA team is testing our app for the Mac App Store and some of that involves resetting the app completely to its initial state. I'm having trouble finding documentation on exactly what should be removed to do this.
The app contains an embedded Network Extension, which is part of a shared app group with the container app. None of the apps explicitly write anything to the file system (only through UserDefaults).
Here's what I've told them to do:
Quit the app (if it's running).
Delete the app from Applications.
Remove the container app's defaults file:
rm -f ~/Library/Containers/com.mycompany.app/Data/Library/Preferences/com.mycompany.app.plist
Remove the network extension's defaults file:
rm -f ~/Library/Containers/com.mycompany.app.PacketTunnelProvider/Data/Library/Preferences/com.mycompany.app.PacketTunnelProvider.plist
Remove the app group's defaults file:
rm -f ~/Library/Group\ Containers/com.mycompany.appgroup/Library/Preferences/com.mycompany.appgroup.plist
Is that all that needs to be done? Or should I be removing the entire container folders? Or what? Also, should they be rebooting after this?
Also as a bonus question: It's throwing them off that it doesn't work like on iOS where when you delete the app, its settings / content get cleared. As far as I know, there's no way for me to do that. Is that correct?