macOS and iOS example apps for ApolloDeveloperKit.
- Xcode (
>= 11.2.1) - Carthage
- Install dependency via Carthage
- You may want to modify
Cartfile.resolvedto use the preferred version ofApollobeforehand. - Run
carthage bootstrap --platform iOSorcarthage bootstrap --platform macOS
- You may want to modify
- Open the root
ApolloDeveloperKit.xcodeproj. - Ensure Xcode scheme to be set to
ApolloDeveloperKitExample-macOSorApolloDeveloperKitExample-iOS. - Run build
To update schema, run the following command.
../Carthage/Checkouts/apollo-ios/scripts/run-bundled-codegen.sh schema:download --endpoint=http://localhost:8080/graphql
../Carthage/Checkouts/apollo-ios/scripts/run-bundled-codegen.sh codegen:generate --includes=*.graphql --target=swift --localSchemaFile=schema.json API.swift
