You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I assume this must be a very simple oversight from me side, but I could not get a clue:
when using assertInlineSnapshot the library wants to write into the test souce file
this access seems to go wrong and I get to below fatalError("Couldn't load snapshot from disk", file: file.path, line: line)
the test runs fine - I can see already the diffing pop up in the editor
Any ideas where I would need to enable that the library has access to write into the test source file?
private func writeInlineSnapshots() {
defer { inlineSnapshotState.removeAll() }
for (file, snapshots) in inlineSnapshotState {
let line = snapshots.first?.line ?? 1
guard let testSource = try? testSource(file: file)
else {
fatalError("Couldn't load snapshot from disk", file: file.path, line: line)
}
Messages in Xcode Console
CLIENT: Failure to determine if this machine is in the process of shutting down, err=1/Operation not permitted
LSPrefs: could not find untranslocated node for <FSNode 0x600000193fa0> { isDir = ?, path = '/private/var/folders/yc/63qbpnfn3kvbr83jgw1_vsg80000gn/X/CF5C6211-778E-5B81-B8E2-5D760ECE4397/d/Wrapper/xxx-xxx.app' }, proceeding on the assumption it is not translocated: Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"
Invalid connection: com.apple.coresymbolicationd
/path-to-file/File_Tests.swift:16: Fatal error: Couldn't load snapshot from disk
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I assume this must be a very simple oversight from me side, but I could not get a clue:
Any ideas where I would need to enable that the library has access to write into the test source file?
Messages in Xcode Console
Beta Was this translation helpful? Give feedback.
All reactions