Is it possible to write in Go for iPhone? I think following steps are required
Compile Go as ARM Mach-O binary (I expect GCCGO be able to do that)
Compile iPhone app as static library (I think it possible to rename main() -> main2(), etc)
Compile Go as Mach-O binary linked with iPhone static library. Go will have to call main2.
make some plist files, zip, sign
Building apps Apps written entirely in Go have a main function, and can be built with `gomobile build`, which directly produces runnable output for Android and iOS. The gomobile tool can get installed with go get. For reference, see https://golang.org/x/mobile/cmd/gomobile.
Change The App Language in iPhone or iPad Apps Tap on the Settings app on the Home screen. Scroll down, select the app you wish to change its language. Select Language under Preferred Language. Choose the language you want to use.
Minux maintains the Go iOS port here: https://bitbucket.org/minux/goios/wiki/Home
Since this question is 4 years old now and a lot has happened since then I thought I'd add to the already existing answers:
This github project supports writing native applications entirely written in Go for Android and iOS (with a limited subset of APIs available, however) and SDK applications where the Android or iOS native code communicates with the Go code via bindings.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With