mirror of
https://github.com/netbirdio/gomobile-tvos-fork.git
synced 2026-05-22 18:43:29 -07:00
Taking the same approach from the widely used CocoaPods who had facing the same issue since Xcode 12. See discussion: https://github.com/CocoaPods/CocoaPods/pull/9905 Fixes golang/go#48677 Change-Id: I92584e6cf87e34747db3ce32cda837d55e5f8b2c Reviewed-on: https://go-review.googlesource.com/c/mobile/+/369198 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com> Reviewed-by: Rob Pike <r@golang.org> Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org> Trust: Emmanuel Odeke <emmanuel@orijtech.com>
Ivy iOS App source
This directory contains the source code to the Ivy iOS app.
To build, first create the Mobile.xcframework out of the Go implementation of Ivy. Run:
go install golang.org/x/mobile/cmd/gomobile@latest
go install golang.org/x/mobile/cmd/gobind@latest
to install gomobile and gobind. Then:
mkdir work; cd work
go mod init work
go get -d golang.org/x/mobile/bind@latest
go get -d robpike.io/ivy/mobile
gomobile bind -target=ios,iossimulator,maccatalyst,macos robpike.io/ivy/mobile robpike.io/ivy/demo
Place the Mobile.xcframework directory in this directory, and then open ivy.xcodeproj in Xcode.
You have to specify Development Team for code signing certificate in: Project Settings -> Targets -> Signing & Capabilities -> Signing -> Team.