Skip to content

Example codegen script fails with folders having whitespace in their names #253

@ghost

Description

👋

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    build-issueIssues occurring when attempting to buildcodegenIssues related to or arising from code generation

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions