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
x/mobile/cmd/gomobile: gomobile-build fails due to header-files not found error #24644
Comments
Do you have xcode installed? |
Yes. |
(CC @eliasnaur) |
The above error happened with 54bca6061991cbde3139dc01ec713e2bba9cdb51. With the previous one 4e3d9b79444693d916d1ae1f1d358cb13ba479e1, the situation changed:
|
Change https://golang.org/cl/104355 mentions this issue: |
I have another similar issue, and I am not sure this is related to the issues above. go get -u github.com/hajimehoshi/go-inovation
cd $GOPATH/src/github.com/hajimehoshi/go-inovation
gomobile bind -v -target ios -o ./mobile/ios/Mobile.framework github.com/hajimehoshi/go-inovation/mobile fails with this message:
git-bisect says 4600df55ca9f03689ade154095e4daf53a00e223 is the cause. |
Change https://golang.org/cl/104458 mentions this issue: |
I think the problem at #24644 (comment) is not solved yet. |
CL 104458 should fix that problem. |
I confirmed the error (gomobile bind for iOS) is still happening with the latest gomobile. |
Did you try with CL 104458 applied? It's not submitted yet. |
Oh, I've not tried that, sorry |
Bindings are independent of any particular GOOS/GOARCH pair and as such the gomobile bind command doesn't set GOOS nor GOARCH when running gobind. However, the ios tag was still added to the list of tags to pass to gobind for -target=ios. Move the ios tag to when actually building the bound packages, mirroring gomobile build. Add TestBindIOS and update TestBindAndroid. Updates golang/go#24644 Change-Id: I007829c26036427a3376bba11a1ccb86e7338848 Reviewed-on: https://go-review.googlesource.com/104458 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
For some reason, the changes to the build tags that was supposed to go in with CL 102915 didn't make it. Fixes golang/go#24644 Change-Id: I106b3c71fef1088dd1eea193323c13d81e5985fa Reviewed-on: https://go-review.googlesource.com/104355 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
For some reason, the changes to the build tags that was supposed to go in with CL 102915 didn't make it. Fixes golang/go#24644 Change-Id: I106b3c71fef1088dd1eea193323c13d81e5985fa Reviewed-on: https://go-review.googlesource.com/104355 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?What did you do?
What did you expect to see?
Build succeeds.
What did you see instead?
Build failed:
Additional information
I removed gomobile and redid go-get, but I couldn't remove this error.
The text was updated successfully, but these errors were encountered: