XcodePreviews cleared actual app data

I've been developing an advanced gps tracking tool and had over 500 miles of data collected in the local storage of my test app. Recently, I used the XcodePreviews app to use my device to test UI updates as I was making them. To my surprise, doing this cleared all the data from my actual test app.

  • Has this happened to anyone else before?
  • Is there a way to recover my lost data?
  • Why does this happen?

I've verified that this is always clearing my app data. I tested by adding data to my actual test app then launching XcodePreviews - only to find that my app data has been cleared.

XcodePreviews cleared actual app data
 
 
Q