Since generated names now have their package names prefixed, the extra prefix, "Go", is both confusing and counter-productive to making the generated ObjC code look like any other native code. Change the default to the empty prefix, while preserving support for an explicit prefix if needed. This is a backwards incompatible change; to keep the old behaviour, specify "-prefix Go" to the gobind or gomobile command. While we're here, fix the Ivy example for the recent change in error returns. Change-Id: I7fef4a92a18ddadee972ccf359652e3b31624f33 Reviewed-on: https://go-review.googlesource.com/34643 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
1. Use gomobile bind to bind the golang.org/x/mobile/example/bind/hello package. The following command will create a static framework bundle 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.framework the gomobild bind command created in Step 1. 3. Drag-and-drop the hello.framework from the desktop to the project navigation window. This will automatically include the hello framework into the project. 4. Build.