Process deprecated in Swift 5.3?

I'm trying to run system commands using Swift 5.3 and I find some code that looks reasonable using Process(). I added the code to my project and get "Cannot find 'Process' in scope (import Foundation).

Can someone suggest an alternative method for running shell commands using Swift 5.3? I have been unable to find an acceptable solution.
As far as tried (Xcode 12.2, macOS Command Line Tool project) Process is available without any problems.

Can you create a brand-new project which can reproduce the issue, and tell us the detailed procedure to reproduce?
I have the same problem. i am imported UIKit and SwiftUI in may XCODE project. By the task "let task = Process()" i get an error "Cannot find 'Process' in scope". Import Foundation not helps.
Please help

Same issue here - was any solution found?

I have the same problem. And I had already updated the Xcode to 13.2.1(latestVer) Swift 5 The issue as above is still remaining. Please help, and give some instructions.

Doc states that Process Availability

  • macOS 10.0+ 
  • Mac Catalyst 15.0+
Process deprecated in Swift 5.3?
 
 
Q