ShellOut icon indicating copy to clipboard operation
ShellOut copied to clipboard

Cannot find type 'Process' in scope

Open PAVUNRAJ opened this issue 2 years ago • 10 comments
trafficstars

The Process class is missing

PAVUNRAJ avatar Feb 11 '23 16:02 PAVUNRAJ

The Process class is missing

Process is part of Foundation, did you forget to do import Foundation?

joadan990 avatar Feb 12 '23 08:02 joadan990

The Process class is missing

Process is part of Foundation, did you forget to do import Foundation?

No, i import Foundation.

PAVUNRAJ avatar Feb 28 '23 07:02 PAVUNRAJ

You need to provide more context and preferably the code that causes this issue or this discussion won't lead anywhere.

joadan990 avatar Feb 28 '23 09:02 joadan990

I'm able to repro. Brand new package, added ShellOut and it fails to build

Screenshot 2023-04-12 at 5 21 49 PM Screenshot 2023-04-12 at 5 21 40 PM

danielbyondd avatar Apr 13 '23 00:04 danielbyondd

Oddly enough, if I try to build in Xcode it fails, but if I run swift build in Terminal it builds just fine. Maybe an Xcode bug? I'm on 14.3 (14E222b).

danielbyondd avatar Apr 13 '23 00:04 danielbyondd

I have the same problem, Xcode 14.2.

Ryu0118 avatar May 07 '23 17:05 Ryu0118

Well, maybe (just maybe) you are trying to use it for iOS and then I'm afraid it's not the case, because there is no Process for iOS

Bact3rial avatar Jun 15 '23 12:06 Bact3rial

I can reproduce the issue and the cause was because the target in Xcode was "Any iOS devices" for me. Switching to My Mac fixed it.

itsmeichigo avatar Feb 10 '24 12:02 itsmeichigo