Apollo-ios: API.swift file is empty

Created on 21 Jan 2019  路  2Comments  路  Source: apollographql/apollo-ios

iOS: 12.1
Xcode: 10.1
Swift: 4.2

Hi guys,

I have a problem with the implementation of Apollo. I tried 3 days with success, but when I tried with the new project I failed. I can generate de API.swift file when I'm building the first time but when I'm adding *.graphql files it doesn't generate the code in API.swift from *.graphql files.

I attach the screenshots with my configuration.

Thanks by advance,

capture d ecran 2019-01-21 a 00 35 37
capture d ecran 2019-01-21 a 00 38 34
capture d ecran 2019-01-21 a 00 39 02

Most helpful comment

That's right. I left them at the root of directory, I forgot to put them in the target directory...

Thank you very much !

All 2 comments

Probably it鈥檚 not finding your graphql files. Are they inside the folder for your target?

That's right. I left them at the root of directory, I forgot to put them in the target directory...

Thank you very much !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ashiemke picture ashiemke  路  5Comments

wnagrodzki picture wnagrodzki  路  4Comments

StanislavCekunov picture StanislavCekunov  路  3Comments

vishal-p picture vishal-p  路  4Comments

Dmurph24 picture Dmurph24  路  4Comments