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

go mobile 编译 iOS 报错 #147

Open
88250 opened this issue Sep 29, 2024 · 4 comments
Open

go mobile 编译 iOS 报错 #147

88250 opened this issue Sep 29, 2024 · 4 comments
Labels

Comments

@88250
Copy link

88250 commented Sep 29, 2024

v7.23.0

启用了 cgo,编译命令:

go build -tags fts5 -v -ldflags -s -w -buildmode=c-archive -o

报错:

/Users/Vanessa/Work/GoGoGo/pkg/mod/github.com/elastic/go-sysinfo@v1.14.2/providers/darwin/machineid_darwin.go:43:14: could not determine kind of name for C.gethostuuid
@bachue
Copy link
Contributor

bachue commented Sep 30, 2024

@88250 可能是头文件没有被正确声明?

@88250
Copy link
Author

88250 commented Sep 30, 2024 via email

@YangSen-qn
Copy link
Collaborator

YangSen-qn commented Oct 9, 2024

@88250 看起来是新引入的库对 gomobile 不支持,后续我们考虑下处理方式

github.com/elastic/go-sysinfo

@88250
Copy link
Author

88250 commented Oct 9, 2024

收到,谢谢。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants