Reputation: 7504
I am able to store, retrieve, and remove values using NSUserDefaults. I couldn't succeed to find out where NSUserDefaults getting stored physically on iPhone? I guess it should be plist file but not sure. Does anyone know if its possible to see this values on iPhone physically?
Thanks.
Upvotes: 16
Views: 10022
Reputation: 448
Small differences to the accepted answer for Xcode 14.
Window
-> Devices and Simulators
.Devices
tab in the sidebar.INSTALLED APPS
section.Download Container…
and Save
the file.Finder
select the downloaded .xcappdata
file, right click and select Show Package Contents
.Appdata
-> Preferencers
-> Library
.Upvotes: 0
Reputation: 19642
I use SimSim. It's a free menu bar app that gives you access to all simulator folders. There are other solutions, but this is a basic tool I use all the time. https://github.com/dsmelov/simsim
Upvotes: 0
Reputation: 879
Windows
-> Organiser
.Download Container…
..xcappdata
file, right click and select Show Package Contents
.AppData
folder.Library
-> Preferences
-> appbundlename.plist
.Upvotes: 32
Reputation: 28720
The physical path is rootOfApplication/Library/Preferences/com.yourcompany.appName.plist you can see there if you test it in simulator
Upvotes: 8