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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Build for target iOS fails #129

Open
DanielSolomon opened this issue Jul 19, 2023 · 3 comments
Open

[Bug]: Build for target iOS fails #129

DanielSolomon opened this issue Jul 19, 2023 · 3 comments

Comments

@DanielSolomon
Copy link

Summary of Bug

Building to iOS target fails because of undefined definitions.

Version

Using v1.2.1

Steps to Reproduce

  • Try to build for iOS target using gomobile bind -ldflags='-s -w' -target=ios

Output:

/nix/store/gizbq4q5h49ryijyhzx7arlrnkxpf47y-gomobile-unstable-2023-03-01/bin/gomobile: iossimulator/amd64: go build -ldflags -s -w -buildmode=c-archive -o /var/folders/m6/fx641jqn0lq3pzwqkkh60p4c0000gn/T/gomobile-work-3352046974/signing-iossimulator-amd64.a ./gobind failed: exit status 1
# github.com/99designs/keyring
/Users/user/go/pkg/mod/github.com/99designs/[email protected]/keychain.go:56:9: query.SetMatchSearchList undefined (type keychain.Item has no field or method SetMatchSearchList)
/Users/user/go/pkg/mod/github.com/99designs/[email protected]/keychain.go:56:39: undefined: gokeychain.NewWithPath
/Users/user/go/pkg/mod/github.com/99designs/[email protected]/keychain.go:116:45: undefined: gokeychain.Keychain
/Users/user/go/pkg/mod/github.com/99designs/[email protected]/keychain.go:125:13: queryItem.SetMatchSearchList undefined (type keychain.Item has no field or method SetMatchSearchList)
/Users/user/go/pkg/mod/github.com/99designs/[email protected]/keychain.go:137:9: kcItem.SetAccess undefined (type keychain.Item has no field or method SetAccess)
/Users/user/go/pkg/mod/github.com/99designs/[email protected]/keychain.go:147:20: undefined: gokeychain.Keychain
/Users/user/go/pkg/mod/github.com/99designs/[email protected]/keychain.go:167:10: kcItem.UseKeychain undefined (type keychain.Item has no field or method UseKeychain)
/Users/user/go/pkg/mod/github.com/99designs/[email protected]/keychain.go:182:10: kcItem.SetAccess undefined (type keychain.Item has no field or method SetAccess)
/Users/user/go/pkg/mod/github.com/99designs/[email protected]/keychain.go:182:32: undefined: gokeychain.Access
/Users/user/go/pkg/mod/github.com/99designs/[email protected]/keychain.go:268:47: undefined: gokeychain.Keychain
/Users/user/go/pkg/mod/github.com/99designs/[email protected]/keychain.go:182:32: too many errors
@esh2n
Copy link

esh2n commented Jul 20, 2023

same issue for me

@fxfactorial
Copy link

@DanielSolomon were you able to solve this?

@xiaotuotuo321
Copy link

@DanielSolomon were you able to solve this?

you can try use v1.2.2

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

4 participants