Where is a Mac Application's NSUserDefaults Data Stored?
They can be found in more than one place:
~/Library/Preferences/com.example.myapp.plist~/Library/SyncedPreferences/com.example.myapp.plist
and if sandboxed
~/Library/Containers/com.example.myapp/Data/Library/Preferences/com.example.myapp.plist~/Library/Containers/com.example.myapp/Data/Library/SyncedPreferences/com.example.myapp.plist
(Xcode 7.3.1,macOS 10.11.6)
For Additional,if you are using App Groups
if let prefs = NSUserDefaults(suiteName: "group.groupApps") { ... }
plist file will be here:
~/Library/Group Containers/group. groupApps/Library/Preferences/group.groupApps.plist