1

When I created a new Playground file there is an error that says "The file “Logs” couldn’t be saved in the folder “Library” because a file with the same name already exists.". Same thing happens when I open an existing playground file.

The error only happens in Playground, no errors in any Project file.

I did my research and followed this and this. I did restart my laptop after following everything on those two tutorials but still errors are still there.

I did not delete ~/Library/Caches/com.apple.dt.Xcode yet as stated here since this is a huge file and I'm still not sure if this would work.

Check my screenshot below. enter image description here

Hope you can help. Thanks.

Community
  • 1
  • 1
Chris Tope
  • 133
  • 13

1 Answers1

0

I just found this answer here and I hope this helps.

  1. Reboot your machine (and do not use Xcode yet - otherwise there might be errors later)
  2. Delete the contents of ~/Library/Developer/XCPGDevices (typically it contains a directory with a name which is the UDID of the simulated device)
  3. Start Xcode and open an iOS playground. This recreated the contents of ~/Library/Developer/XCPGDevices.
Chris Tope
  • 133
  • 13