-
-
Save oaleeapp/61e0a1339150cadaed08abe336e416db to your computer and use it in GitHub Desktop.
Xcode build phases run script for update GraphQL APIs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# move .graphql files to ${SRCROOT}/ProjectName/GraphQL/ | |
# move schema.json to ${SRCROOT}/ProjectName/GraphQL/schema.json | |
# move GraphQLAPIs.swift to ${SRCROOT}/ProjectName/Models/GraphQLAPIs.swift | |
npm install -g aws-appsync-codegen | |
aws-appsync-codegen generate "${SRCROOT}/ProjectName/GraphQL/"*.graphql --schema ${SRCROOT}/ProjectName/GraphQL/schema.json --output ${SRCROOT}/ProjectName/Models/GraphQLAPIs.swift | |
# output file ${SRCROOT}/ProjectName/Models/GraphQLAPIs.swift will be updated after build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment