Skip to content

OS X issue building gomobile apps for iOS

Louis Maddox edited this page Jun 21, 2016 · 1 revision

Installation instructions for Go are here - Mac specifically is here:

Download the package file, open it, and follow the prompts to install the Go tools. The package installs the Go distribution to /usr/local/go.

The package should put the /usr/local/go/bin directory in your PATH environment variable. You may need to restart any open Terminal sessions for the change to take effect.

After following the instructions above, there should be a line in your ~/.bashrc (or ~/.bash_profile?) beginning with export GOPATH=. If this has loaded into your Terminal you should have an output from go version something like go version go1.6 darwin/amd64

To add the gomobile into your brand new Go installation, run the following (the 2nd line won't appear to do anything):

go get -v golang.org/x/mobile/cmd/gomobile
gomobile init

cd into the downloaded flappy-max directory, and run:

gomobile build -target ios ./

The iOS app should be output within the directory.


Trying this on 2 Macs reported "The following build commands failed: check dependencies", which appears to be an Xcode security 'key signing' issue. (See: 1, 2)

Clone this wiki locally