x/mobile: gomobile bind
on M1 panics when building for iOS if the Android NDK is installed
#47296
Labels
Milestone
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
)?go env
OutputWhat did you do?
I ran
gomobile bind -target ios
on an Apple Silicon mac with the Android NDK installed (and thereforeANDROID_NDK_HOME
exported to my path).What did you expect to see?
The bind command execute and build for iOS.
What did you see instead?
There seem to be 2 compounding issues leading to this:
archNDK()
panics when run on arm64. (Ideally, the NDK could be invoked using Rosetta if the GOARCH is arm64)archNDK()
) even when the gomobile target is iOS.This leads to the issue that simply having the NDK installed causes a panic—even when building for iOS only.
The text was updated successfully, but these errors were encountered: