x/mobile: No way to identify when being built for iossimulator #58539
Labels
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.
OS-Darwin
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes. This is the latest release
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
gomobile bind -target ios/arm64,iossimulator/arm64 -o Library.xcframework
What did you see?
Received this error message:
This issue is caused by the fact that go is trying to link the
ios
static libraries instead of theiossimulator
static library.What did you expect to see?
There needs to be a way to use build tags to identify whether we're building for ios/arm64 or iossimulator/arm64. That way different static libraries can be linked depending on e.g.:
//go:build arm64 && ios && !iossimulator
and
//go:build arm64 && ios && iossimulator
The text was updated successfully, but these errors were encountered: