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

     1  # Ivy iOS App source
     2  
     3  This directory contains the source code to the Ivy iOS app.
     4  
     5  To build, first create the mobile.framework out of the Go
     6  implementation of Ivy. Run:
     7  
     8  ```
     9  go install github.com/SahandAslani/gomobile/cmd/gomobile@latest 
    10  go install github.com/SahandAslani/gomobile/cmd/gobind@latest
    11  ```
    12  
    13  to install `gomobile` and `gobind`. Then:
    14  
    15  ```
    16  mkdir work; cd work
    17  go mod init work
    18  go get -d github.com/SahandAslani/gomobile/bind@latest
    19  go get -d robpike.io/ivy/mobile
    20  gomobile bind -target=ios robpike.io/ivy/mobile
    21  ```
    22  
    23  Place the mobile.framework directory in this directory, and
    24  then open ivy.xcodeproj in Xcode.
    25  
    26  You have to specify Development Team for code signing certificate in:
    27  Project Settings -> Targets -> Signing & Capabilities -> Signing -> Team.