👋
The API.swift generating script from https://www.apollographql.com/docs/ios/installation.html#adding-build-step fails on folders having whitespace in their name like User Search:
exec apollo-codegen generate ./Controllers/Users Search/UserSearch.graphql --schema 'Supporting Files/schema.json' --output API.swift
Error: ENOENT: no such file or directory, open '<full path to my app>/Controllers/Users'
... etc
I think this happens because of $(find . -name '*.graphql'). It doesn't put quotes around the files it finds.
Should there be a note about it for those not familiar with unix tools?
👋
The
API.swiftgenerating script from https://www.apollographql.com/docs/ios/installation.html#adding-build-step fails on folders having whitespace in their name likeUser Search:I think this happens because of
$(find . -name '*.graphql'). It doesn't put quotes around the files it finds.Should there be a note about it for those not familiar with unix tools?