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

Installing > 2.0 version #525

Open
Dancargon opened this issue Nov 15, 2024 · 0 comments
Open

Installing > 2.0 version #525

Dancargon opened this issue Nov 15, 2024 · 0 comments

Comments

@Dancargon
Copy link

Hi!
I've installed Cocoapod version 2.0.9.
It generates the GeneratedMocks file but It fails to compile with a message:

Global function 'when' requires that 'MockGraphQlClientProtocol.Stubbing' (aka 'MockGraphQlClientProtocol.__StubbingProxy_GraphQlClientProtocol') conform to 'BaseStubFunctionTrait'

on all instances of when similar to this:

graphQlClientMock = MockGraphQlClientProtocol()
stub(graphQlClientMock) { stub in
	when(stub).setup(withSession: any(), serverUrlString: any()).thenDoNothing()
}

MockGraphQlClientProtocol seems to be generated successfully in the GeneratedMocks file.

Any feedback will be much appreciated.

Thanks!

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