Xcode 6 iOS Simulator does not remember app settings

后端 未结 3 1597
-上瘾入骨i
-上瘾入骨i 2021-02-13 21:39

I just installed Xcode 6.0.1 (coming from Xcode 5.1.1) and tried to run my iOS app on iPhone 6 simulator for the first time. It builds and runs, but I cannot change its settings

相关标签:
3条回答
  • 2021-02-13 22:05

    This appears to have been fixed in Xcode 6.1 so consider updating.

    0 讨论(0)
  • 2021-02-13 22:11

    This is a known bug in iOS 8.0 in the simulator. The only workaround at this time is to set the preferences from the command line using the defaults command line tool.

    defaults write ˜/Library/Developer/CoreSimulator/Devices/<UDID>/data/Containers/Data/Application/<App UUID>/Library/Preferences/...
    

    You also need to find the relevant UDID.

    0 讨论(0)
  • 2021-02-13 22:17

    This happened to me, too. It seems that the settings file is not saved at all.

    ˜/Library/Developer/CoreSimulator/Devices/[GUID]/data/Containers/Data/Application/[GUID]/Library/Preferences 
    

    is empty.

    I've tried to use plist file from 7.1 simulator, but without any luck.

    Downloading iOS 7.1 Simulator through XCode -> Preferences -> Download allowed me to save the settings, but that just for iOS 7.1.

    0 讨论(0)
提交回复
热议问题