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

x/mobile: -tags=ios is not getting set #11782

prep opened this issue Jul 18, 2015 · 1 comment

x/mobile: -tags=ios is not getting set #11782

prep opened this issue Jul 18, 2015 · 1 comment


Copy link

@prep prep commented Jul 18, 2015

I've been experimenting with the new iOS support in x/mobile and I noticed this compile error when including net/http in mypackage:

$ gomobile bind -target ios mypackage

clang: error: invalid argument '-mmacosx-version-min=10.6' not allowed with '-mios-simulator-version-min=6.1'

The -mios-simulator-version-min=6.1 parameter in x/mobile/cmd/gomobile/env.go seems to conflicts with the -mmacosx-version-min=10.6 CFLAGS parameter in crypto/x509/root_cgo_darwin.go. A +build constraint with an !ios tag seems to be present in the latter file, but it doesn't appear to get honored.

Adding the -tags=ios parameter to my previous gomobile command seems to work, but it would be great if it could be added by default to x/mobile/cmd/gomobile/build.go.

@ianlancetaylor ianlancetaylor added this to the Unreleased milestone Jul 18, 2015
@crawshaw crawshaw self-assigned this Jul 19, 2015
Copy link

@gopherbot gopherbot commented Jul 19, 2015

CL mentions this issue.

@golang golang locked and limited conversation to collaborators Jul 18, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.