From 0525b1cbc7402b3fccd92ce262561ccf538d7250 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Tue, 9 Aug 2022 14:26:00 -0400 Subject: [PATCH] fix: get gomobile before building mobile targets --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 0ba7acbf..6a274fc5 100644 --- a/Makefile +++ b/Makefile @@ -124,12 +124,14 @@ endif mobile-android: gomobile init && \ + go get -d golang.org/x/mobile/cmd/gomobile && \ gomobile bind -v -target=android -ldflags="-s -w" $(BUILD_FLAGS) -o ./build/lib/gowaku.aar ./mobile @echo "Android library built:" @ls -la ./build/lib/*.aar ./build/lib/*.jar mobile-ios: gomobile init && \ + go get -d golang.org/x/mobile/cmd/gomobile && \ gomobile bind -target=ios -ldflags="-s -w" -o ./build/lib/Gowaku.xcframework ./mobile @echo "IOS library built:" @ls -la ./build/lib/*.xcframework