23

when I use iOS 7 simulator ,

setting.bundle in my project can work effectively . I change app settings by toggle switch and then immediately in to app setting again,the value changed as I just do.

but when go run iOS 8 simulator , every change in my custom-app-settings are not stored.

I have tried rebooting the device / reinstalling the app. It seems the switch has no effect only in iOS 8 simulator?

step:1 toggleswitch, change value and go back. enter image description here

step:2 the same enter image description here

Julian F. Weinert
  • 7,474
  • 7
  • 59
  • 107
user2082661
  • 281
  • 2
  • 7

3 Answers3

5

This has been fixed in Xcode 6.1 GM seed. simulator saves settings now :)

Box Box Box Box
  • 5,094
  • 10
  • 49
  • 67
Nikhil Lele
  • 51
  • 1
  • 1
2

It is normal now at Xcode 6 beta 7.@@

Box Box Box Box
  • 5,094
  • 10
  • 49
  • 67
user2082661
  • 281
  • 2
  • 7
2

I think is an XCode issue. Using XCode 6 beta6/ Beta7 / GM the Settings bundle work on iOS7 simulators but not 8. The changes you make are supposed to be saved to the following path:

/Users/<User Name>/Library/Application Support/iPhone Simulator/<iOS Version>

However the iOS versions there don't include 8. I am waiting for the final XCode version.

AShavit
  • 416
  • 3
  • 10
  • 6
    I'm currently experiencing this issue with Xcode 6.0.1. – René Sep 17 '14 at 22:22
  • 1
    the path has changed for iOS 8 Simulators : `~/Library/Developer/CoreSimulator/Devices/{simulated device UUID}/data/Containers/Data/Application/{application UUID}/Library/Preferences/`. Use `xcrun simctl list` to find your simulator UUID. As to your App's UUID, search or add some code in your delegate like this : `NSLog(@"Documents Directory: %@", [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject]);` – David Lacourt Oct 15 '14 at 12:58