When running an app on the iPhone (for example when you can do it in another way testing some GPS or camera feature), where can I find and check the file created by NSUserDefaults to save the standardUserDefaults ? I'm running XCode 4.
The user's defaults database is stored on disk as a property list or plist. A property list or plist is an XML file. At runtime, the UserDefaults class keeps the contents of the property list in memory to improve performance. Changes are made synchronously within the process of your application.
Overview. The NSUserDefaults class provides a programmatic interface for interacting with the defaults system. The defaults system allows an app to customize its behavior to match a user's preferences. For example, you can allow users to specify their preferred units of measurement or media playback speed.
It's in your app directory under:
Library -> Preferences ->
bundleID
.plist
You can access the data on your device. Go into the organizer select your device then the app and there should be a download button there. If you click that it will download all the app data.
The user defaults file for applications started in the simulator are located here:
/Users/[USERNAME]/Library/Application Support/iPhone Simulator/4.3/Applications/[UNIQUE IDENTIFIER]/Library/Preferences/APP_ID.plist
The USERNAME is the user you run as on your system.
The UNIQUE IDENTIFIER is generated by Xcode.
APP_ID is your com.yourcompany.app bundle id.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With