MakeAWishFoundation / SwiftyMocky

Framework for automatic mock generation. Adds a set of handy methods, simplifying testing. One of the best and most complete solutions, including generics support and much more.
MIT License
1.03k stars 104 forks source link

Issue with ShellOut dependency with SPM #347

Open MartonPRez opened 1 year ago

MartonPRez commented 1 year ago

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 (https://github.com/JohnSundell/ShellOut/issues/69)

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

Can you please advise?

mmisesin commented 5 months ago

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