Skip to content

Commit 67412ca

Browse files
authored
fix(tools): change the tools script to comply with amplify-app changes (#445)
1 parent 13be092 commit 67412ca

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

AmplifyTools/amplify-tools.sh

+5-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ export PATH=$PATH:$(npm bin -g)
1111
if ! which node >/dev/null; then
1212
echo "warning: Node is not installed. Vist https://nodejs.org/en/download/ to install it"
1313
exit 1
14-
elif ! test -f ./amplifyxc.config; then
14+
elif ! test -f ./amplifytools.xcconfig; then
1515
npx amplify-app --platform ios
1616
fi
1717

18-
. amplifyxc.config
18+
. amplifytools.xcconfig
1919
amplifyPush=$push
2020
amplifyModelgen=$modelgen
2121
amplifyProfile=$profile
@@ -25,7 +25,10 @@ amplifyRegion=$region
2525
amplifyEnvName=$envName
2626

2727
if $amplifyModelgen; then
28+
echo "modelgen is set to true, generating Swift models from schema.graphql..."
2829
amplify codegen model
30+
# calls amplify-app again so the Xcode project is updated with the generated models
31+
amplify-app --platform ios
2932
fi
3033

3134
if [ -z "$amplifyAccessKey" ] || [ -z "$amplifySecretKey" ] || [ -z "$amplifyRegion" ]; then

Podfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ DEPENDENCIES:
2424
- SwiftLint
2525

2626
SPEC REPOS:
27-
trunk:
27+
https://cdn.cocoapods.org/:
2828
- AWSAuthCore
2929
- AWSCognitoIdentityProvider
3030
- AWSCognitoIdentityProviderASF

Pods/Manifest.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)