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 NSUserDe
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.
You can see it in:
/var/mobile/Containers/Data/Application/F27682C5-55AC-4984-9864-313DA609134F/Library/Preferences while App at: /var/mobile/Containers/Bundle/Application/AE02FFCA-4CAF-4B58-8F32-0D67A78BD259