swift-snapshot-testing icon indicating copy to clipboard operation
swift-snapshot-testing copied to clipboard

Error message: 'couldn't be opened because you don't have permission to view it'.

Open aj2109 opened this issue 4 years ago • 3 comments
trafficstars

Running any assertSnapshot() on Xcode 13 fails giving this error message:

'failed - The File ______.txt could not be opened because you don't have permission to view it.'

Has anyone else experienced this? All permissions that could be required are setup, and I can actually see the files and open the files it refers to, and all others at my work are running these tests fine.

A workaround I currently have is deleting the file it says it says I don't have access to, and remaking it with isTesting = true on. After doing this it then works. But would like to not have to do this each time.

aj2109 avatar Oct 05 '21 09:10 aj2109

I got a similar error. スクリーンショット 2021-11-22 12 46 11

my environment is here

  • Xcode 13.1
  • iMac Pro(2017) Intel
  • macOS 11.3.1 Big Sur
  • test with iOS 15 Simulator
  • running the test by Xcode

SatoTakeshiX avatar Nov 22 '21 03:11 SatoTakeshiX

deleting snapshot folder and rerunning test fix the problem for me as well 🥲.

hadanischal avatar Feb 25 '22 02:02 hadanischal

Is there any update, it still present in last version of library

IgorShevtshenko avatar Apr 28 '24 17:04 IgorShevtshenko