Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悳[Bug Report] Error when using Gomobile: func GetWordIndex returns wrong type #59

Open
kcw-grunt opened this issue Nov 1, 2023 · 0 comments

Comments

@kcw-grunt
Copy link

Problem

When preparing the package to call from swift, the gomobile bind command returns an error.

Here are the logs:

myterminal $ go-bip39 % go get golang.org/x/mobile/cmd/gobind                       
go: added golang.org/x/mobile v0.0.0-20231006135142-2b44d11868fe
myterminal $ go-bip39 % gomobile bind -target ios -o ../frameworks/bip39.xcframework
gomobile: /Users/myterminal/go-workspace/bin/gobind -lang=go,objc -outdir=/var/folders/hp/rh26j25gz_7vm0000gp/T/gomobile-work-825612255/ios -tags=ios github.com/tyler-smith/go-bip39 failed: exit status 1
functions and methods must return either zero or one values, and optionally an error
second result value must be of type error: func github.com/tyler-smith/go-bip39.GetWordIndex(word string) (int, bool)
second result value must be of type error: func github.com/tyler-smith/go-bip39.GetWordIndex(word string) (int, bool)
second result value must be of type error: func github.com/tyler-smith/go-bip39.GetWordIndex(word string) (int, bool)

Not sure how to modify the issue @tyler-smith to create a workaround.

Is there a workaround? Some of the logs suggested that the crypto library had a corrupted go.sum.

@kcw-grunt kcw-grunt changed the title 馃悳[Bug Report] Error when using Gomobile: , GetWordIndex return wrong type 馃悳[Bug Report] Error when using Gomobile: , GetWordIndex returns wrong type Nov 1, 2023
@kcw-grunt kcw-grunt changed the title 馃悳[Bug Report] Error when using Gomobile: , GetWordIndex returns wrong type 馃悳[Bug Report] Error when using Gomobile: func GetWordIndex returns wrong type Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant