App document directory data deleted when upgrading ios 7 to ios 8?

In my iOS app, I save the data in the document directory and they are all marked as NOT syncing with the cloud as Apple suggests, but when I upgrade my app from iOS 7 to ios 8, then the app's document directory becomes empty.

+3


source to share


1 answer


This is because iOS 8 uses a different directory structure than iOS 7 and older. You can see the same with the iOS 8 simulator, where your app is now stored like this:

/Users/{YOUR NAME}/Library/Developer/CoreSimulator/Devices/{DEVICE ID}/data/Containers/Data/Application/{APPLICATION ID}/

      



You can get your device ID by going to Xcode> Window> Devices> Select your device> ID.

+2


source







All Articles