XCode Problem - Couldn't load settings from contents.xcplayground I recently moved a few playground files from my documents folder to iCloud Drive. Then I noticed they all the files have been duplicated and non can be opened.
I moved them back to the original location to the documents folder and still they don't open.

Any suggestions on how I can bring back the codes I've written?



UPDATE:
I had a copy of one of the files in my dropbox. It turns out the playground file, consists of a few files and some files were missing or didn't get uploaded to iCloud. (iCloud bug? Shame!) 

So then I took a look at the contents (right click > show package contents) and found a swift file which had my code in it.
This happens when you zip and unzip files and Mac turned some files into .xml file depend on your mac settings. The solution is:
right-click the "xxx.playground" file -> show package content, you will see the "contents.xcplayground" file. Right-cilck this file and go to "Get info". Now in file name and extension section, remove the .xml at last.

Do the same for "contents.xcworkspacedata" under the "playground.xcworkspace" workspace folder.