README 642 B

1234567891011121314
  1. 1. Use gomobile bind to bind the golang.org/x/mobile/example/bind/hello package.
  2. The following command will create an XCFramework in the current directory.
  3. $ gomobile bind -target=ios golang.org/x/mobile/example/bind/hello
  4. 2. Open the Xcode project by double clicking on bind.xcodeproj.
  5. The project will not build - ViewController.m calls a function from the hello
  6. package so requires the Hello.xcframework that gomobile bind command created
  7. in Step 1.
  8. 3. Drag-and-drop Hello.xcframework from the desktop to the project navigation window.
  9. This will automatically include the Hello.xcframework into the project.
  10. 4. Build.