Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Go language on iPhone

Tags:

Is it possible to write in Go for iPhone? I think following steps are required

  1. Compile Go as ARM Mach-O binary (I expect GCCGO be able to do that)

  2. Compile iPhone app as static library (I think it possible to rename main() -> main2(), etc)

  3. Compile Go as Mach-O binary linked with iPhone static library. Go will have to call main2.

  4. make some plist files, zip, sign

like image 406
Max Avatar asked Oct 02 '12 09:10

Max


People also ask

Can go run on iOS?

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.

How do I change the language on my iPhone apps?

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.


2 Answers

Minux maintains the Go iOS port here: https://bitbucket.org/minux/goios/wiki/Home

like image 173
zzzz Avatar answered Sep 22 '22 12:09

zzzz


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.

like image 40
TheBaj Avatar answered Sep 23 '22 12:09

TheBaj