github.com/acrespo/mobile@v0.0.0-20190107162257-dc0771356504/example/bind/ios/README (about)

     1  1. Use gomobile bind to bind the golang.org/x/mobile/example/bind/hello package.
     2     The following command will create a static framework bundle in the current
     3     directory.
     4  
     5    $ gomobile bind -target=ios golang.org/x/mobile/example/bind/hello
     6  
     7  2. Open the Xcode project by double clicking on bind.xcodeproj.
     8     The project will not build - ViewController.m calls a function from the hello
     9     package so requires the hello.framework the gomobild bind command created
    10     in Step 1.
    11  
    12  3. Drag-and-drop the hello.framework from the desktop to the project navigation window.
    13     This will automatically include the hello framework into the project.
    14  
    15  4. Build.