From 02b0217c0ecabac9a445d09a3d9c7d012c67c33c Mon Sep 17 00:00:00 2001 From: Ege Sucu Date: Sat, 3 Jun 2023 12:51:40 +0300 Subject: [PATCH] Sendable Conformance for Process Xcode was warning about "Stored property 'process' of 'Sendable'-conforming struct 'ProcessExecutionError' has non-sendable type 'Process'" The solution has been inspired by [this](https://www.avanderlee.com/swift/sendable-protocol-closures/#:~:text=Stored%20property%20%E2%80%98author%E2%80%99%20of%20%E2%80%98Sendable%E2%80%99%2Dconforming%20struct%20%E2%80%98ArticleSavingError%E2%80%99%20has%20non%2Dsendable%20type%20%E2%80%98NonFinalAuthor) article. --- Xcodes/Backend/Process.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Xcodes/Backend/Process.swift b/Xcodes/Backend/Process.swift index fe96001..bc6804b 100644 --- a/Xcodes/Backend/Process.swift +++ b/Xcodes/Backend/Process.swift @@ -73,3 +73,7 @@ struct ProcessExecutionError: Error { let standardOutput: String let standardError: String } + +extension Process: @unchecked Sendable { + +}