In Xcode 9.3 and iOS simulators, [NSUserDefaults standardUserDefaults]
store the values at:
/Users/{User Name}/Library/Developer/CoreSimulator/Devices/{Device GUID}/data/Containers/Data/Application/{application GUID}/Library/Preferences/{bundle identifier}.plist
where I could open the .plist file easily and look into the values.
But, how could I check these values when the app is running in a development device? Is it possible to check these values in a developed device like as simulators?
You cannot access it directly. Apple does not allow, an access to such kind of data (and/or files) of iOS application (for any external sources) from device.
Only application developer can access it programatically. (There are some software available in market, which can open/access files from IPA using Jail-broken devices.)
Refer this Apple document: iOS Security - File Data Protection. (There is no direct answer to your question but complete details about file and data security, in this doc.)
But if you are a developer of this app then you can find it from AppData Preferences
.
Follow these steps to find it:
Device and Simulator
window (Xcode (Menu) >> Window >> Devices and Simulators).Settings
iconDownload Container
, that will prompt you to save you file.
Show Package Contents
AppData
of file.AppData >> Library >> Preferences >> <file>.plist
UserDefault
storage file. Open it and check your data.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