Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where are user defaults plist files stored in iOS8?

I can't find preferences .plist file, because Preferences folder is empty. To get Library folder I use:

println(NSSearchPathForDirectoriesInDomains(.LibraryDirectory, .UserDomainMask, true)[0])

Xcode 6 beta 5, iOS Simulator

like image 857
ChikabuZ Avatar asked Aug 16 '14 13:08

ChikabuZ


1 Answers

The folder hierarchy has changed under iOS8.

All preferences are now stored under the common /Library/Preferences folder. Notice, this is not the Library folder under your app's container, it's the general Library folder.

For the simulator, the exact folder is:

~/Library/Developer/CoreSimulator/Devices/<Unique Simulator ID>/data/Library/Preferences
like image 104
Léo Natan Avatar answered Nov 26 '22 15:11

Léo Natan