-
Notifications
You must be signed in to change notification settings - Fork 722
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
API.swift generated class is empty #13
Comments
Hmmm, do you have any queries defined yet in If you have written some queries, where are your |
yep, that looks like the problem. Just had the question answered on slack. Thanks for the quick response! Really looking forward to the future of this library 😄 |
I'm still getting an empty My My schema has been used a few days ago in my React Native/Relay app, so I'm pretty sure my |
So just to make sure, your Are there any error messages when you build your target? If you've copied the default build script, it expects both your cd ${SRCROOT}/${TARGET_NAME} So if you've put them in the parent project directory instead, that may be the issue. But I would have expected an error message in that case. |
Sorry, I haven't been doing iOS dev for about a year, so its a bit rusty. My target directory is called
I haven't got any errors when building and running the script as is which I got from the docs. My schema contains stuff like:
etc. |
That looks good, except for the
You may want to take a look at the FrontPage example app. |
Ah, OK, that example app helped me out a lot. Thank you 🖖. I didn't quite understand what it meant by So if there is a |
You can organize your An added benefit of that is that we also have an Xcode integration that shows you the corresponding |
I have written some query in my .graphql file but still my API.swift is empty ..can anyone help? |
I solved my problem. Actually my .graphql file was outside of project directory hence API.swift file was empty. |
I didn't get the solution ....Anyone please help me |
hi guys, new to apollo-ios, i still cant generate code in my API.swift, my .graphql file and schema.json are already under my project folder, any other suggestions as to this issue? |
In some cases if the syntax of queries/mutations is incorrect, you don't get any error on compile time but an empty API.swift file. Make sure that your syntax is correct. |
I have followed the steps on the installation page and have a compiling project. I have also imported the proper
schema.json
from my server, but the script seems to generate a blankAPI.swift
file. Am I missing something here?I am using Cocoapods to install the latest version (0.3.1 I believe), and have installed apollo-codegen from
npm
. Any help would be appreciated!The text was updated successfully, but these errors were encountered: