mirror of
https://github.com/netbirdio/gomobile-tvos-fork.git
synced 2026-05-22 18:43:29 -07:00
This updates examples for the changes in golang.org/cl/334689 for .xcframework files and Mac Catalyst. Depends on golang.org/cl/334689 https://go-review.googlesource.com/c/mobile/+/334689/28/example/bind/ios/README#1 Change-Id: Ice89e7e675c8f190c7040407908f619a7631fd2b GitHub-Last-Rev: 64da8e6cad76f3e0530e36895bbfeacab7439b35 GitHub-Pull-Request: golang/mobile#72 Reviewed-on: https://go-review.googlesource.com/c/mobile/+/350489 Reviewed-by: Changkun Ou <euryugasaki@gmail.com> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com> Reviewed-by: Hajime Hoshi <hajimehoshi@gmail.com> Trust: Hyang-Ah Hana Kim <hyangah@gmail.com> Run-TryBot: Hajime Hoshi <hajimehoshi@gmail.com> TryBot-Result: Go Bot <gobot@golang.org>
15 lines
642 B
Plaintext
15 lines
642 B
Plaintext
1. Use gomobile bind to bind the golang.org/x/mobile/example/bind/hello package.
|
|
The following command will create an XCFramework in the current directory.
|
|
|
|
$ gomobile bind -target=ios golang.org/x/mobile/example/bind/hello
|
|
|
|
2. Open the Xcode project by double clicking on bind.xcodeproj.
|
|
The project will not build - ViewController.m calls a function from the hello
|
|
package so requires the Hello.xcframework that gomobile bind command created
|
|
in Step 1.
|
|
|
|
3. Drag-and-drop Hello.xcframework from the desktop to the project navigation window.
|
|
This will automatically include the Hello.xcframework into the project.
|
|
|
|
4. Build.
|