pointfreeco / swift-snapshot-testing

📸 Delightful Swift snapshot testing.
https://www.pointfree.co/episodes/ep41-a-tour-of-snapshot-testing
MIT License
3.68k stars 556 forks source link

"The file “...” couldn’t be opened because you don’t have permission to view it" after switching branch #851

Open IgorShevtshenko opened 2 months ago

IgorShevtshenko commented 2 months ago

I see that here is already opened issue on this topic but nobody provides solutions for this (re-record snapshot is not the option).

The problem

After I record snapshot being on 1 branch I am able to run assertSnapshot and access previously created snapshot file. But after I switch to another branch on same MacBook I receive error about "The file “...” couldn’t be opened because you don’t have permission to view it".

Yes deleting and recording again is working but this is not the solution