When I do defaults read at the command line, I get over 6000 lines of keys. When I enumerate UserDefaults.standard.dictionaryRepresentation() in a program (non-sandboxed), I get only about 50 lines of values.
What's the Foundation version of defaults read? How do I get all the NSUserDefaults keys in a program?