Post

Replies

Boosts

Views

Activity

Reply to macOS : Accessing UserDefaults when App Group is enabled
Was there a way to edit the group container using Defaults? I tried using the filepath option, but it always failed saying the domain doesn't exist. It seems to be treating it as a domain instead of a filepath. Also the man page for Defaults on 10.15.7 has the below text, so it seems like support for the paths to a plist will be removed. "WARNING: The defaults command will be changed in an upcoming major release to only operate on preferences domains. General plist manipulation utilities will be folded into a different command-line program." The only working way I have found to edit the UserDefaults for a group container is to manually edit the plist, then restart cfprefsd, as it doesn't pick up changes to the plist.
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’21