Skip to content
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

Cannot find type 'Process' in scope #69

Open
PAVUNRAJ opened this issue Feb 11, 2023 · 10 comments
Open

Cannot find type 'Process' in scope #69

PAVUNRAJ opened this issue Feb 11, 2023 · 10 comments

Comments

@PAVUNRAJ
Copy link

The Process class is missing

@joadan990
Copy link

The Process class is missing

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

@PAVUNRAJ
Copy link
Author

The Process class is missing

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

No, i import Foundation.

@joadan990
Copy link

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

@danielbyondd
Copy link

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
Copy link

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).

@Ryu0118
Copy link

Ryu0118 commented May 7, 2023

I have the same problem, Xcode 14.2.

@Bact3rial
Copy link

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

@itsmeichigo
Copy link

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.

@house0000
Copy link

I am also one of guys who wish that use SwiftMockey with "Any iOS devices" without this error ;)

@joadan990
Copy link

joadan990 commented Sep 5, 2024

@house0000 wrong discussion? This is about ShellOut and it will always be limited to macOS btw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants