Since UserDefaults hand builds the path to the local app data location, this location is incorrect if the USERNAME doesn't match the USERPROFILE location directory. This means that all UserDefaults writes will fail because the location on disk won't exist.
Since UserDefaults hand builds the path to the local app data location, this location is incorrect if the
USERNAME
doesn't match theUSERPROFILE
location directory. This means that allUserDefaults
writes will fail because the location on disk won't exist.