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

SwiftyMocky CLI does not run when installed via Mint #18

Open
anuragajwani opened this issue Nov 3, 2022 · 1 comment
Open

SwiftyMocky CLI does not run when installed via Mint #18

anuragajwani opened this issue Nov 3, 2022 · 1 comment

Comments

@anuragajwani
Copy link

Hi,

I have installed SwiftyMockyCLI through Mint as recommended in the README of SwiftMocky when the dependency is installed view Carthage or SPM. Carthage in my case.

This is the message I get:

╔════════════════════════╗
║ SwiftyMocky CLI v4.2.0 ║
╚════════════════════════╝

Running at: [HIDDEN]
Using template from CLI
Processing mock: unit.tests.mock ...
Using sourcery command: ./Pods/Sourcery/bin/sourcery
❌  Error: ShellOut encountered an error
Status code: 127
Message: "/bin/bash: ./Pods/Sourcery/bin/sourcery: No such file or directory"
Output: "

There is no instruction that I have found that says Sorcery is required to be installed via Cocoapods. I would prefer at this point not to use Cocoapods. I did find that there is function to resolve the path for Sourcery binary, however if you checkout the code it expects Sorcery to be installed through SPM or Cocoapods but not Mint.

I would like to use Sourcery via Mint. I thought this was supported based on the Mintfile in the main SwiftyMocky repo.

Am I missing something here?

Anurag

@anuragajwani
Copy link
Author

Update: I found that the code should fallback to mint however for some reason it understands that Sourcery at Cocoapods does in fact "exists".

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

1 participant