GoMobile a static linking on iOS

Asked by At

I make GoMobile framework with something like

gomobile bind -target=ios -v -ldflags="-w -s" package_name

But it is huge like 40MB. Especially after upgrading from Go 1.10 to 1.12 I found many issues on github about framework size but in one of issues author told he solved issue by doing static linking and his resulting size went from 32MB to 8MB


I can't find any reference on making statically linking iOS framework or static library for iOS.

How do I do GoMobile code statically linked with apps binary?

0 Answers