1

The user defaults are not cleared on deleting an app in XCode 6 iOS 8 simulator. The user defaults are cleared only on resetting the simulator. In iOS 7 simulator, this is not a problem at all. Any other solution rather than resetting the simulator?

Neenu
  • 6,848
  • 2
  • 28
  • 54

3 Answers3

1

Yes, i too observed that in iOS 8 simulator ...do this for clearing NSUserDefaults data.

iOS Simulator ---> Reset Content and Settings… ---> Ok

Teja Kumar Bethina
  • 3,486
  • 26
  • 34
0

This is a bug in the iOS 8.0 simulator runtime as mentioned in multiple other posts here on Stack Overflow, Apple's Dev Forums, and the Xcode 6 Release Notes which indicate that the issue is fixed in the iOS 8.1 simulator runtime.

Deleting an app from iOS Simulator now deletes user defaults as expected. (18307910)

Jeremy Huddleston Sequoia
  • 22,938
  • 5
  • 78
  • 86
-1

Clear the /Library/Developer/Xcode/DerivedData folder.

Also reset the simulator. And clean and build the Xcode.

Hope this may help you.

Neenu
  • 6,848
  • 2
  • 28
  • 54