/ go Public
x/mobile: No way to identify when being built for iossimulator #58539
Android, iOS, and x/mobile
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
Does this issue reproduce with the latest release?
Yes. This is the latest release
What operating system and processor architecture are you using (
What 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
iosstatic libraries instead of the
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
//go:build arm64 && ios && iossimulator
The text was updated successfully, but these errors were encountered: