If you want an answer, you need to be more specific about the following statement:
all the data is gone Is the saved data in your app gone when you restart Xcode? Or are you losing data in your app's Xcode project when you restart Xcode? Are you running your app on a device or the iOS Simulator?
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: