Closed basdevelop closed 4 years ago
+1 for this issue
Go 1.15 and gomobile no longer supports darwin/arm
.
As seen in the release notes Go 1.15 dropped darwin/arm support: https://golang.org/doc/go1.15#darwin
I dont think there will be much support for armv7 on darwin (if its not already there and this is a bug) as go1.14 will run out of support at some point wether gomobile supports it or not.
/cc @eliasnaur
What's the solution?
Related to https://github.com/golang/go/issues/41300
No solution here. iOS ARMv7 (32bit) is no longer supported by Go.
Ok, what's the best way to run gomobile so that it doesn't try to use arm even though the machine is amd64. Or maybe I should ask, how does one specify the iOS arch to use?
You can specify the architecture by giving e.g, -target=ios/arm64
to gomobile-build or gomobile-bind. Or, just specifying -target=ios
should include arm64 version and amd64 version. Your machine's architecture doesn't matter here for iOS (as long as you use macOS).
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
gomobile bind -v -o $(BINDIR)/xxx.framework -target=ios
What did you expect to see?
frameworks support armv7
What did you see instead?
missing required architecture armv7
ld: warning: Could not find or use auto-linked framework