apollographql / apollo-ios

📱  A strongly-typed, caching GraphQL client for iOS, written in Swift.
https://www.apollographql.com/docs/ios/
MIT License
3.88k stars 726 forks source link

can i get iOS latest documents for add schema.json file creation process and latest sample code ? #2799

Closed MohanVMaxIOS closed 1 year ago

MohanVMaxIOS commented 1 year ago

Question

I have tried ios V1.0 documents to create the project with add the sdk and create schema.json file but getting some errors and warning xcode 14.0.1 . Step1: Install the Apollo Swift Package by entering the Apollo iOS Github's repository link (https://github.com/apollographql/apollo-ios.git) in the Add Package Dependency window.

Step2: Up to Next Major 1.0 < 2.0

Step3 : build getting "No such module codegen"

Note : can i get create schema.json file create steps what is required steps need go do. When use to create this command "apollo schema:download --endpoint=http://hasura.io/learn/graphql --header="Authorization: Bearer "

DEPRECATED: This command will be removed from the apollo CLI in its next major version. Replacement functionality is available in the new Apollo Rover CLI: https://go.apollo.dev/t/migration

AnthonyMDev commented 1 year ago

You are using the old apollo-tooling CLI, which is deprecated and does not work with v1.0. You need to use the new Apollo iOS CLI. Here is the documentation on the fetch-schema command.

Here is a guide on downloading a schema.

Here is our full 1.0 migration guide.