github.com/SahandAslani/gomobile@v0.0.0-20210909130135-2cb2d44c09b2/example/bind/ios/README (about)

     1  1. Use gomobile bind to bind the github.com/SahandAslani/gomobile/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 github.com/SahandAslani/gomobile/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.