From eac43b87100556149b80316cbf38d7aa575e0642 Mon Sep 17 00:00:00 2001 From: Gordon <46924906+FGadvancer@users.noreply.github.com> Date: Tue, 12 Sep 2023 14:25:12 +0800 Subject: [PATCH] feat: add sh of generate ios dylib. Signed-off-by: Gordon <46924906+FGadvancer@users.noreply.github.com> --- c_wrapper/gen_ios_dylib.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 c_wrapper/gen_ios_dylib.sh diff --git a/c_wrapper/gen_ios_dylib.sh b/c_wrapper/gen_ios_dylib.sh new file mode 100644 index 0000000..338cfe0 --- /dev/null +++ b/c_wrapper/gen_ios_dylib.sh @@ -0,0 +1,8 @@ +export GOOS=darwin +export GOARCH=arm64 +export CGO_ENABLED=1 +export CC=clang + +go build -buildmode=c-shared -o libopenimsdk.dylib export.go constant.go protocol.go tools.go +``` +