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

Mocks with omitted argument labels are not created #422

Closed
klein-artur opened this issue Apr 24, 2022 · 4 comments
Closed

Mocks with omitted argument labels are not created #422

klein-artur opened this issue Apr 24, 2022 · 4 comments
Labels

Comments

@klein-artur
Copy link

Let's say I have a class like this:

class SomeClass {
    func someFunc(_ someParam: Int) {
        someCode()
    }
}

If such a file is in the list of mock objects, the generation script fails. The output is
terminated with signal 5; aborting

@zivadler
Copy link

same here but for us failed with signal 4

Showing Recent Messages
xargs: cuckoo_generator: terminated with signal 4; aborting

Command PhaseScriptExecution failed with a nonzero exit code

@MatyasKriz
Copy link
Collaborator

This is probably caused by the new Xcode's SourceKit, I'll see what I can do.

@MatyasKriz MatyasKriz added the bug label May 30, 2022
@zivadler
Copy link

zivadler commented May 30, 2022

the signal 4 error we got is only when using Xcode 13.3+
but when using Xcode 13.2 is working fine.
the solution we did for Xcode 13.3+ is
"I had to download the latest cuckoo_generator 1.7.1, commit to my repository. I was then able to build and run specs on Xcode 13.3.x"
as explained here:
#417

@MatyasKriz
Copy link
Collaborator

I see, I thought that this error seemed familiar. Yeah, it's fixed in version 1.7.1, but you absolutely don't have to commit the binary into your repo, simply add --clean to the run script to make it build/download the newest binary.

I'll close this issue now, thanks @zivadler for reminding me, though just to reiterate, committing to repository is definitely not necessary and unless you use Git LFS for it, you're gonna bloat your repository.

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

No branches or pull requests

3 participants