| 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.xcframework out of the Go |
| 6 |
implementation of Ivy. Run: |
| 7 |
|
| 8 |
``` |
| 9 |
go install golang.org/x/mobile/cmd/gomobile@latest |
| 10 |
go install golang.org/x/mobile/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 golang.org/x/mobile/bind@latest |
| 19 |
go get -d robpike.io/ivy/mobile |
| 20 |
gomobile bind -target=ios,iossimulator,maccatalyst,macos robpike.io/ivy/mobile robpike.io/ivy/demo |
| 21 |
``` |
| 22 |
|
| 23 |
Place the Mobile.xcframework 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. |