You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env)?
darwin/amd64
What did you do?
Compile to iOS target on Mac, if import contains "crypto/x509", will result in compile error:
$ gomobile build -target=ios .
gomobile: go build . failed: exit status 2
# crypto/x509
clang: error: invalid argument '-mmacosx-version-min=10.6' not allowed with '-mios-simulator-version-min=6.1'
clang: warning: using sysroot for 'iPhoneSimulator' but targeting 'MacOSX' [-Wincompatible-sysroot]
Then run the command: gomobile build -target=ios .
What did you expect to see?
It should compile withour error.
What did you see instead?
Error: "clang: error: invalid argument '-mmacosx-version-min=10.6' not allowed with '-mios-simulator-version-min=6.1'"
The text was updated successfully, but these errors were encountered:
gbbr
changed the title
gomobile compile error on mac when using "crypto/x509" package
x/mobile/cmd/gomobile: compile error on mac when using "crypto/x509" package
Jun 18, 2018
Non-main packages are built in an earlier code path than main
packages. Add the ios build tag before that early code path to
ensure packages that expect that tag successfully compiles.
Fixesgolang/go#25944
Change-Id: Ida15475109373127dde024037e9787c76b32ee0b
Reviewed-on: https://go-review.googlesource.com/119555
Reviewed-by: Hyang-Ah Hana Kim <[email protected]>
imWildCat
pushed a commit
to imWildCat/go-mobile
that referenced
this issue
Apr 11, 2021
Non-main packages are built in an earlier code path than main
packages. Add the ios build tag before that early code path to
ensure packages that expect that tag successfully compiles.
Fixesgolang/go#25944
Change-Id: Ida15475109373127dde024037e9787c76b32ee0b
Reviewed-on: https://go-review.googlesource.com/119555
Reviewed-by: Hyang-Ah Hana Kim <[email protected]>
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Go are you using (
go version
)?go1.10.3 darwin/amd64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?darwin/amd64
What did you do?
Compile to iOS target on Mac, if import contains "crypto/x509", will result in compile error:
To reproduce the error, create a file
hello.go
:hello.go
Then run the command:
gomobile build -target=ios .
What did you expect to see?
It should compile withour error.
What did you see instead?
Error: "clang: error: invalid argument '-mmacosx-version-min=10.6' not allowed with '-mios-simulator-version-min=6.1'"
The text was updated successfully, but these errors were encountered: