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

Issue with ShellOut dependency with SPM #347

Open
MartonPRez opened this issue Jul 12, 2023 · 1 comment
Open

Issue with ShellOut dependency with SPM #347

MartonPRez opened this issue Jul 12, 2023 · 1 comment

Comments

@MartonPRez
Copy link

MartonPRez commented Jul 12, 2023

Recently migrating our project from CocoaPods to Swift Package Manager.

After

  1. Adding SwiftyMocky, with dependency rule 'Up to Next Mayor Version' '4.0.0 < 5.0.0',
  2. Selecting only the "SwiftyMocky" Package Product, adding it to Target "MyProjectTests"
  3. and trying to run all tests in project (Product/Test), I've got the following error message:
/Users/xxx/Library/Developer/Xcode/DerivedData/xxx/SourcePackages/checkouts/ShellOut/Sources/ShellOut.swift
/Users/xxx/Library/Developer/Xcode/DerivedData/xxx/SourcePackages/checkouts/ShellOut/Sources/ShellOut.swift:34:14 Cannot find type 'Process' in scope
/Users/xxx/Library/Developer/Xcode/DerivedData/xxx/SourcePackages/checkouts/ShellOut/Sources/ShellOut.swift:67:14 Cannot find type 'Process' in scope
/Users/xxx/Library/Developer/Xcode/DerivedData/xxx/SourcePackages/checkouts/ShellOut/Sources/ShellOut.swift:102:14 Cannot find type 'Process' in scope
/Users/xxx/Library/Developer/Xcode/DerivedData/xxx/SourcePackages/checkouts/ShellOut/Sources/ShellOut.swift:377:19 Cannot find type 'Process' in scope

As far as I understand 'Process' is something only available for macOS and not iOS SDK (JohnSundell/ShellOut#69)

Although I don't understand how is this connected to using SwiftyMocky.

Can you please advise?

@mmisesin
Copy link

mmisesin commented Apr 8, 2024

@MartonPRez Having the same issue on 4.2.0, were you able to resolve it? My app does not support macos

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

2 participants