Skip to content

Commit

Permalink
Update tutorial-obtain-schema.md
Browse files Browse the repository at this point in the history
Change type of the scheme file.
  • Loading branch information
Carrione authored Mar 29, 2022
1 parent a563c40 commit ad12a33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/tutorial/tutorial-obtain-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ To use the Apollo CLI from Xcode, add a **Run Script** build phase to your app:
"${SCRIPT_PATH}"/run-bundled-codegen.sh schema:download --endpoint="https://apollo-fullstack-tutorial.herokuapp.com/graphql"
```
This line runs the Apollo CLI's `schema:download` command, which downloads the schema to a `schema.graphqls` file at the same level of your project as the `AppDelegate.swift` file.
This line runs the Apollo CLI's `schema:download` command, which downloads the schema to a `schema.json` file at the same level of your project as the `AppDelegate.swift` file.
8. Build your project to execute the script. In Finder, navigate to the folder that contains your `AppDelegate.swift` file. The folder should now include the downloaded `schema.graphqls` file. Drag this file from Finder into Xcode. When Xcode offers to add the schema file, make sure **all targets are unchecked** to reduce the size of your application bundle:
8. Build your project to execute the script. In Finder, navigate to the folder that contains your `AppDelegate.swift` file. The folder should now include the downloaded `schema.json` file. Drag this file from Finder into Xcode. When Xcode offers to add the schema file, make sure **all targets are unchecked** to reduce the size of your application bundle:
<img src="images/dont_add_to_target.png" alt="All targets unchecked in dialog" class="screenshot"/>
Expand Down

0 comments on commit ad12a33

Please sign in to comment.