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

Cannot find type 'Apollo' in scope #3492

Closed
alexdmotoc opened this issue Dec 23, 2024 · 4 comments
Closed

Cannot find type 'Apollo' in scope #3492

alexdmotoc opened this issue Dec 23, 2024 · 4 comments
Labels
question Issues that have a question which should be addressed

Comments

@alexdmotoc
Copy link

Question

I don't understand why after migrating to latest version I get these errors in my test mocks
Cannot find type 'Apollo' in scope

Screenshot 2024-12-23 at 21 07 00

It is clear I need to import Apollo, but I don't know how to do it. My config json looks like this:

Screenshot 2024-12-23 at 21 10 58

You can see I put my schema files and test files into two separate modules that I have .podspec files for each. Any help is greatly appreciated, I am stuck :(

@alexdmotoc alexdmotoc added the question Issues that have a question which should be addressed label Dec 23, 2024
@calvincestari
Copy link
Member

Hi @alexdmotoc - I'm assuming the schema types module has a dependency on the Apollo pod. What are the dependencies of the test mocks pod?

@alexdmotoc
Copy link
Author

@calvincestari I've already migrated to SPM and it works, but for future devs, here are the old pod specs (the bottom one is the pod spec for the test mocks pod)

Screenshot 2025-01-07 at 15 22 35

I tried adding Apollo as dependency there but it still doesn't work, I need to explicitly import Apollo in my mock files.

@calvincestari
Copy link
Member

OK, I'm going to close this issue then.

Copy link
Contributor

github-actions bot commented Jan 7, 2025

Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo iOS usage and allow us to serve you better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Issues that have a question which should be addressed
Projects
None yet
Development

No branches or pull requests

2 participants