Skip to content

Generate Apollo GraphQL API script fails for project not using CocoaPods #619

@gabrielvincent

Description

@gabrielvincent

The Run Script Phase necessary to compile the schema.json file and generate the API.swift file fails with the error:


Couldn't find Apollo.framework in FRAMEWORK_SEARCH_PATHS; make sure to add the framework to your project.

I found that there is an extra space in the script that makes it fail. After removing the space, the build happens successfully:

This:

APOLLO_FRAMEWORK_PATH ="$(eval find ${QUOTED_FRAMEWORK_SEARCH_PATHS} -name "Apollo.framework" -maxdepth 1)"

Has to be changed to:

APOLLO_FRAMEWORK_PATH="$(eval find ${QUOTED_FRAMEWORK_SEARCH_PATHS} -name "Apollo.framework" -maxdepth 1)"

Metadata

Metadata

Assignees

No one assigned

    Labels

    build-issueIssues occurring when attempting to builddocsFocuses on documentation changes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions