-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
failed - Snapshot comparison failed: Optional(Error Domain=Foundation._GenericObjCError Code=0 "(null)") #124
Comments
We're also having this issue -- interestingly it's only affecting some of us, despite having near-identical setups. @brunodossantosrocha1510 have you managed to find any workarounds since you posted this? |
@MichaelKearnsSoftwire I have tried literally everything and also didn't have success.. Have you had any success? |
I'm having exactly the same problem with version 11.3.1 of XCode |
@brunodossantosrocha1510 yes, we have in fact! It seemed to be a permissions issue. Things you could try which might solve the problem:
In our investigation, we saw that executing against the freshly checked-out repository caused the above error, but deleting and re-generating the snapshot images enabled them to pass -- the re-generated images had the same binary content (so git did not show any differences) but inspecting the files with Afraid I don't have any more info right now -- hopefully the above helps you out, if not I'll see if I can find out more next week. |
I think I was seeing these errors and was able to solve them by giving SimulatorTrampoline.xpc full disk access. I'm not sure that's ideal, though. |
Same here, XCode 11.6. Tried to give full access to SimulatorTrampoline without success |
@brunodossantosrocha1510 I had the same problem. And that was resolved. I was NOT calling the |
I have this problem and it was happening because the Desktop folder locked the files and the snapshot can not read them, so now I just use the root folder (~/) and everything worked. |
Does someone have the same issue?
No matter what I do I keep getting this
failed - Snapshot comparison failed: Optional(Error Domain=Foundation._GenericObjCError Code=0 "(null)")
when trying to run my snapshot tests.I am using
XCode 11.3.1
The text was updated successfully, but these errors were encountered: