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/cmd/gomobile: bind command fails for iOS with Go 1.15 #41300

Closed
ToJen opened this issue Sep 9, 2020 · 3 comments
Closed

x/mobile/cmd/gomobile: bind command fails for iOS with Go 1.15 #41300

ToJen opened this issue Sep 9, 2020 · 3 comments
Labels
FrozenDueToAge mobile Android, iOS, and x/mobile NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Milestone

Comments

@ToJen
Copy link

ToJen commented Sep 9, 2020

$ go version
go version go1.15 darwin/amd64

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/user/Library/Caches/go-build"
GOENV="/Users/user/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/path/to/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/path/to/go"
GOPRIVATE=""
GOROOT="/usr/local/Cellar/go/1.15/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.15/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/path/to/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/05/01234/T/go-build111673491=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

gomobile bind -v -ldflags '-s -w' -target=ios -o=MyLib.framework github.com/user/mylib-go/...

What did you expect to see?

Normal binding output.

What did you see instead?

gomobile: go [-e -json -compiled=true -test=false -export=false -deps=false -find=true -tags=ios -- github.com/user/mylib-go/...]: exit status 2: cmd/go: unsupported GOOS/GOARCH pair darwin/arm

Is this related to https://golang.org/doc/go1.15#darwin?

@gopherbot gopherbot added the mobile Android, iOS, and x/mobile label Sep 9, 2020
@gopherbot gopherbot added this to the Unreleased milestone Sep 9, 2020
@ToJen
Copy link
Author

ToJen commented Sep 9, 2020

@hajimehoshi @dmitshur just curious how gomobile detects the system is darwin/arm when the system says otherwise:

$ go env GOOS GOARCH
darwin
amd64

I'm temporarily downgrading to go@1.14

@dmitshur
Copy link
Contributor

dmitshur commented Sep 9, 2020

Is this issue different from #39575, which was fixed?

What version of gomobile are you using?

@dmitshur dmitshur added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. labels Sep 9, 2020
@dmitshur dmitshur changed the title x/mobile: bind command fails for iOS with Go 1.15 x/mobile/cmd/gomobile: bind command fails for iOS with Go 1.15 Sep 9, 2020
@ToJen
Copy link
Author

ToJen commented Sep 22, 2020

No longer a problem, my gomobile was outdated

@ToJen ToJen closed this as completed Sep 22, 2020
@golang golang locked and limited conversation to collaborators Sep 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge mobile Android, iOS, and x/mobile NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

3 participants